longxboy
123fc1e6c8
feat: add peer for selector ( #2088 )
...
* add peer for selector
3 years ago
李洛克
4472cdbf49
fix client do method done not use when err not nil ( #1948 )
3 years ago
Tony Chen
a72fc68ffd
feat: add error cause for statck trace ( #1910 )
...
* add error cause for statck trace
3 years ago
Cluas
e1e8184768
transport/http: delay pass context.Context ( #1684 )
...
* transport/http: fix http request do not with ctx from user
3 years ago
Eng Zer Jun
77b16286f8
refactor: move from io/ioutil to io and os packages ( #1633 )
...
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil . This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
3 years ago
letian
32272fe441
feat(http): http client support service discovery in Do ( #1563 )
3 years ago
longxboy
feeec630d7
feat: add selector and filters examples ( #1485 )
...
* add selector examples and filters
3 years ago
longXboy
039ce62778
remove http client call option:selectFilter
3 years ago
longxboy
20f0a07d36
Feat: add load balancer ( #1437 )
...
* add balancer
* add p2c balancer
* add http client selector filter
Co-authored-by: yuemoxi <99347745@qq.com>
Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
3 years ago
Tony Chen
bc35f20228
feat(endpoint): add endpoint parser ( #1273 )
...
* feat(endpoint): add endpoint parser
* fix parseTarget ut
* fix insecure testing
4 years ago
zwhyb
8f4e78b47d
grpc‘s secure discovery ( #1270 )
...
* add gprc secure discovery
* add http insecure filter
4 years ago
Tony Chen
5ca42fe921
feat(transport): add transport tls config ( #1267 )
...
* 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>
4 years ago
Tony Chen
7773d15256
fix(grpc/resolver): fix builder context ( #1258 )
...
* fix grpc resovler ctx
* fix client close
* upgrade etcd to v3.5.0
* clean code
4 years ago
longxboy
a02d9b4192
add zero endpoint protection ( #1215 )
...
* add zero endpoint protection
4 years ago
包子
5f678de2cc
fix(transport/http): fixed the problem of getting empty node list ( #1206 )
...
* fix(transport/http): fixed the problem of getting empty node list
* fix http blocking
Co-authored-by: longXboy <longxboyhi@gmail.com>
4 years ago
longxboy
545ffd1084
add response header ( #1119 )
...
* add response header
Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
4 years ago
longxboy
87eb5ed5c0
add http ip port support ( #1115 )
...
* add http ip port support
* fix example
4 years ago
longxboy
953c91d354
keep balancer nodes ( #1110 )
4 years ago
Tony Chen
59f54b2661
Revert/root ctx v2 ( #1088 )
...
* Revert "remove app info (#1081 )"
This reverts commit 1dab58616b
.
* add http base ctx
Co-authored-by: longXboy <longxboyhi@gmail.com>
4 years ago
longxboy
8baa2ede4b
add path pattern for http ( #1076 )
...
* add path pattern for http
4 years ago
longxboy
db02034dd1
fix error decode ( #1068 )
...
* fix error decode
4 years ago
longxboy
60b1e593f1
add http transport ( #1060 )
...
* add http transport
* delete method and path
4 years ago
Windfarer
0ff1c6f89a
test http ( #1045 )
...
* test http
* fix response codec
* benchmark
4 years ago
Tony Chen
8d8cd8c8a8
Middleware/metadata v2 ( #1050 )
...
* add middleware metadata
* add transport header
* add transport carrier
Co-authored-by: longXboy <longxboy@gmail.com>
4 years ago
Tony Chen
1b13abd136
transport/http: add http route ( #1029 )
...
* add http route
* fix http context
* add HTTP middleware
Co-authored-by: longXboy <longxboyhi@gmail.com>
4 years ago
longxboy
736385c8e6
Feat/uni transport ( #1028 )
...
* add metadata incoming&outgoing
* regenerate proto
* uni transport
Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
4 years ago
Tony Chen
92b6bf54eb
add grpc interceptor option ( #990 )
4 years ago
Tony Chen
bef6d8d818
transport/http: clean http client ( #981 )
...
* clean http client
4 years ago
Tony Chen
079f11fb50
add endpoint context ( #979 )
4 years ago
Tony Chen
149fc0195e
kratos: add application info ( #968 )
...
* add application info
* add base context
* add client target
4 years ago
Tony Chen
e7ddc1ba1e
Change the default func to public ( #966 )
4 years ago
longXboy
cc0214d78b
mv balancer
4 years ago
longxboy
28abad2268
Feat/http resovler ( #953 )
...
* add http resolver & balancer
Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
4 years ago
longxboy
eb958b2093
add path for rpc stub ( #947 )
...
* add path for rpc stub
* fix http body and response_body
Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
4 years ago
Tony Chen
66412031fd
errors: refactor status code ( #948 )
...
* refactor status code
4 years ago
Tony Chen
cc0221b5ce
errors: add errors coder ( #946 )
...
* add errors coder
* rename internal http to httputil
* add errors proto
4 years ago
longxboy
9a3a02fc68
add http client rpc stub ( #943 )
...
* add http client
4 years ago
Tony Chen
ef6e52d1ba
add multiple middlewares ( #936 )
4 years ago
Tony Chen
0dbcaa2443
clean transport ( #920 )
4 years ago
Tony Chen
7c6f53132f
api/errors: refactor to grpc statas ( #880 )
...
* refactor to grpc status
4 years ago
Tony Chen
7c3212c306
transport/http: uses gRPC status to the HTTP error. ( #870 )
...
* uses gRPC status to the HTTP error.
4 years ago
Tony Chen
9806191b7f
errors: Error v2 ( #860 )
...
* refactor api errors
4 years ago
storyicon
18752bf0ec
set transport.kind to be strongly typed ( #728 )
...
Signed-off-by: storyicon <storyicon@foxmail.com>
4 years ago
Tony Chen
946e9ca814
fix http decode ( #742 )
...
* fix http decoder
4 years ago
Tony Chen
496edc6fb1
Http/refactor register service ( #734 )
...
* refactor http handle
4 years ago
Tony Chen
c7827ff701
fix http middleware ( #710 )
...
* fix http middleware
4 years ago
chenzhihui
3566386a89
init v2
4 years ago