1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-02-13 13:48:51 +02:00

38 Commits

Author SHA1 Message Date
Tony Chen
bc35f20228
feat(endpoint): add endpoint parser ()
* feat(endpoint): add endpoint parser

* fix parseTarget ut

* fix insecure testing
2021-07-29 10:11:38 +08:00
zwhyb
8f4e78b47d
grpc‘s secure discovery ()
* add gprc secure discovery

* add http insecure filter
2021-07-28 23:10:02 +08:00
Tony Chen
5ca42fe921
feat(transport): add transport tls config ()
* add http tls config

* add grpc tls config

* add examples tls

* fix resolver parseTarget

* support https for discovery

* add isSecure
* clean code

Co-authored-by: longXboy <longxboyhi@gmail.com>
Co-authored-by: 包子 <baozhecheng@foxmail.com>
2021-07-28 13:36:15 +08:00
Tony Chen
7773d15256
fix(grpc/resolver): fix builder context ()
* fix grpc resovler ctx


* fix client close

* upgrade etcd to v3.5.0

* clean code
2021-07-26 23:44:41 +08:00
longxboy
a02d9b4192
add zero endpoint protection ()
* add zero endpoint protection
2021-07-20 13:36:19 +08:00
包子
5f678de2cc
fix(transport/http): fixed the problem of getting empty node list ()
* fix(transport/http): fixed the problem of getting empty node list

* fix http blocking

Co-authored-by: longXboy <longxboyhi@gmail.com>
2021-07-18 07:46:03 +08:00
longxboy
545ffd1084
add response header ()
* add response header

Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
2021-06-29 15:33:18 +08:00
longxboy
87eb5ed5c0
add http ip port support ()
* add http ip port support

* fix example
2021-06-28 10:20:48 +08:00
longxboy
953c91d354
keep balancer nodes () 2021-06-25 18:18:57 +08:00
Tony Chen
59f54b2661
Revert/root ctx v2 ()
* Revert "remove app info ()"

This reverts commit 1dab58616b5bfee9bb78abe192d45f44c2f53c43.

* add http base ctx

Co-authored-by: longXboy <longxboyhi@gmail.com>
2021-06-20 23:00:27 +08:00
longxboy
8baa2ede4b
add path pattern for http ()
* add path pattern for http
2021-06-17 17:34:27 +08:00
longxboy
db02034dd1
fix error decode ()
* fix error decode
2021-06-16 19:54:19 +08:00
longxboy
60b1e593f1
add http transport ()
* add http transport

* delete method and path
2021-06-15 11:40:41 +08:00
Windfarer
0ff1c6f89a
test http ()
* test http
* fix response codec
* benchmark
2021-06-14 12:25:15 +08:00
Tony Chen
8d8cd8c8a8
Middleware/metadata v2 ()
* add middleware metadata
* add transport header
* add transport carrier

Co-authored-by: longXboy <longxboy@gmail.com>
2021-06-14 00:59:07 +08:00
Tony Chen
1b13abd136
transport/http: add http route ()
* add http route

* fix http context

* add HTTP middleware

Co-authored-by: longXboy <longxboyhi@gmail.com>
2021-06-12 18:30:17 +08:00
longxboy
736385c8e6
Feat/uni transport ()
* add metadata incoming&outgoing

* regenerate proto

* uni transport

Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
2021-06-11 15:05:57 +08:00
Tony Chen
92b6bf54eb
add grpc interceptor option () 2021-06-01 21:19:18 +08:00
Tony Chen
bef6d8d818
transport/http: clean http client ()
* clean http client
2021-06-01 14:43:31 +08:00
Tony Chen
079f11fb50
add endpoint context () 2021-06-01 12:02:22 +08:00
Tony Chen
149fc0195e
kratos: add application info ()
* add application info

* add base context

* add client target
2021-05-29 23:52:05 +08:00
Tony Chen
e7ddc1ba1e
Change the default func to public () 2021-05-28 19:47:24 +08:00
longXboy
cc0214d78b mv balancer 2021-05-27 15:04:32 +08:00
longxboy
28abad2268
Feat/http resovler ()
* add http resolver & balancer

Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
2021-05-26 16:43:59 +08:00
longxboy
eb958b2093
add path for rpc stub ()
* add path for rpc stub

* fix http body and response_body

Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
2021-05-26 14:23:43 +08:00
Tony Chen
66412031fd
errors: refactor status code ()
* refactor status code
2021-05-25 15:01:53 +08:00
Tony Chen
cc0221b5ce
errors: add errors coder ()
* add errors coder

* rename internal http to httputil

* add errors proto
2021-05-25 00:56:31 +08:00
longxboy
9a3a02fc68
add http client rpc stub ()
* add http client
2021-05-24 23:01:26 +08:00
Tony Chen
ef6e52d1ba
add multiple middlewares () 2021-05-20 23:30:50 +08:00
Tony Chen
0dbcaa2443
clean transport () 2021-05-17 20:18:53 +08:00
Tony Chen
7c6f53132f
api/errors: refactor to grpc statas ()
* refactor to grpc status
2021-04-28 23:09:27 +08:00
Tony Chen
7c3212c306
transport/http: uses gRPC status to the HTTP error. ()
* uses gRPC status to the HTTP error.
2021-04-28 00:37:50 +08:00
Tony Chen
9806191b7f
errors: Error v2 ()
* refactor api errors
2021-04-25 20:19:23 +08:00
storyicon
18752bf0ec
set transport.kind to be strongly typed ()
Signed-off-by: storyicon <storyicon@foxmail.com>
2021-03-05 21:09:02 +08:00
Tony Chen
946e9ca814
fix http decode ()
* fix http decoder
2021-03-05 18:52:39 +08:00
Tony Chen
496edc6fb1
Http/refactor register service ()
* refactor http handle
2021-03-03 22:22:59 +08:00
Tony Chen
c7827ff701
fix http middleware ()
* fix http middleware
2021-02-18 16:53:59 +08:00
chenzhihui
3566386a89 init v2 2021-02-17 17:14:47 +08:00