longxboy
11cd43e3c3
refactor: unify selector filter ( #2277 )
...
* unify selector
Co-authored-by: caoguoliang01 <caoguoliang01@bilibili.com>
Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
2 years ago
Kagaya
e4d73db523
fix lint error ( #2266 )
2 years ago
Tony Chen
f3b0da3f04
feat(middleware): add selector matcher ( #2239 )
...
* feat(middleware): add selector matcher
Co-authored-by: chenzhihui <chenzhihui@bilibili.com>
3 years ago
Tony Chen
3c54997dd8
fix default behavior for gRPC encoding ( #2187 )
...
Co-authored-by: chenzhihui <chenzhihui@bilibili.com>
3 years ago
Tony Chen
d0a0edf67b
feat(http): add http router walk ( #2181 )
...
* add http router walk
Co-authored-by: chenzhihui <chenzhihui@bilibili.com>
3 years ago
Ccheers
b3eff576ce
test(transport): add unit test for transport coverage: 91.7% of state… ( #2172 )
...
* test(transport): add unit test for transport coverage: 91.7% of statements
* lint & fix data race
* fix test
* fix lint
* fix lint
* remove http func wrapper
* remove error log when watcher context is canceled
* optimize code style
3 years ago
Tony Chen
6ac63e6439
fix(transport): http endpoint listening ( #2180 )
...
* fix http serve
* fix endpoint nil
Co-authored-by: chenzhihui <chenzhihui@bilibili.com>
3 years ago
Tony Chen
c90eab4577
fix transport early listening ( #2177 )
...
Co-authored-by: chenzhihui <chenzhihui@bilibili.com>
3 years ago
longxboy
123fc1e6c8
feat: add peer for selector ( #2088 )
...
* add peer for selector
3 years ago
haiyux
ad5e9032a3
feat: make secure url to grpcs://127.0.0.1/ ( #2072 )
...
* feat:make secure url to grpcs://127.0.0.1/
3 years ago
Tony Chen
dccee86141
log: remove component logger to use global logger ( #2061 )
...
* remove component logger to user global logger
3 years ago
haiyux
71ea97fd93
deps: upgrade go mod version ( #2028 )
...
* deps:upgrade go mod version
3 years ago
yeqown
fbf7855cf2
feat(discovery): provide an option to disable discovery debug log ( #1942 )
...
* feat(discovery): provide an option to disable discovery resolver one debug-like log
* styl: re-sort imports
* styl: rename option function name and comment
3 years ago
Tony Chen
d0b704b8f3
feat(selector): add node scheme ( #1932 )
...
* add node scheme
3 years ago
Tony Chen
fd2335ba38
add json codec for grpc ( #1908 )
3 years ago
kwanhur
ac99a5c877
style(cmd/errors/examples/middleware/transport): fix common words' spelling mistakes ( #1872 )
...
* matchs to matches
* contraint to constraint
* resovle to resolver
* ser to set
Signed-off-by: kwanhur <huang_hua2012@163.com>
3 years ago
haiyux
370a1585a5
fix: fix the latest version of lint problem ( #1825 )
3 years ago
yangjianfeng9527
f050b07432
fixed the problem that grpc stop could not close properly
...
Co-authored-by: coco <>
3 years ago
haiyux
89583885e4
feat:add stream interceptor use ctx encapsulation ( #1770 )
...
* feat:add stream interceptor use ctx encapsulation
* add reply header
3 years ago
haiyux
00c05e82a3
test:remove testify go mod ( #1766 )
...
* test:remove testify go mod
* tidy go mdo
* fix test
3 years ago
MARATRIX Li
c6c5e4595c
optimization: optimize global logger ( #1763 )
3 years ago
realityone
0ed2e0f379
feat(log): add global logger appliance, as process level default logger ( #1761 )
...
* add global logger appliance, as process level default logger
* replace DefaultLogger as global logger
3 years ago
haiyux
da70e22201
upgrade:upgrade grpc and opentelemetry version ( #1751 )
...
* upgrade:upgrade grpc and opentelemetry version
* upgrade jaeger
* fix lint
3 years ago
haiyux
7f003a8742
test(transport): add transport Listener test ( #1735 )
...
* test(tansport): add transport Listener test
3 years ago
haiyux
3625634d3c
feat(transport):add grpc and http with listen ( #1729 )
...
* feat(transport):add grpc and http with listen
3 years ago
Jason Song
b421389227
fix: remove the use of client timeout as discovery time ( #1715 )
3 years ago
包子
5aeb14d381
feat(transport/grpc): gRPC client discovery supports incoming logger and timeout ( #1702 )
3 years ago
Giovanny Gutiérrez
2471f1d955
fix(grpc): Block the RCP unil a new picker is available ( #1660 )
...
* fix(config): Support colon as default value in config.yaml
* fix(cmd/protoc-gen-go-http): Follow the http rule to use the query string
* fix: Block the RPC until new picker is available
* fix: lints for balancer
3 years ago
longxboy
98fd40bcb4
revert to select filters ( #1656 )
3 years ago
haiyux
27cfec93d6
optimize:chan bool to chan struct{} ( #1648 )
3 years ago
haiyux
3607ce1b92
feat: upgrade grpc version to 1.42.0 ( #1626 )
3 years ago
longxboy
988c2312b4
feat: add base fitler to improve performace ( #1612 )
...
* add node filter
Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
3 years ago
longxboy
cd79c2a458
feat: add raw node ( #1611 )
...
* add raw node to improve performace
3 years ago
longxboy
91714bcd34
test: add transport grpc test ( #1580 )
...
* add transport grpc test
* fix node
3 years ago
longxboy
ae57ae9bde
test : add selector & balancer test ( #1577 )
...
* add selector test
* add balancer test
* add node and selector
* add ewma test
* fix datarace
* fix datarace
3 years ago
longxboy
86dec76aa3
fix global selector bug ( #1564 )
3 years ago
longxboy
feeec630d7
feat: add selector and filters examples ( #1485 )
...
* add selector examples and filters
3 years ago
seasrain
55e00ce9f3
fix:server start panic when use Endpoint ( #1491 )
...
* fix:server start panic when use Endpoint
* fix test
* fix lint
3 years ago
letian
db2122860d
add endpoint option in grpc server ( #1488 )
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
0184d217cf
fix(transport/grpc): default base ctx ( #1465 )
...
* fix grpc base ctx
3 years ago
Kagaya
f7588a47de
fix: ci lint error ( #1391 )
...
* fix lint check
* fix lll lint error
* fix build error
* fix gomnd
* fix shadow declaration
* add make test command
* update
3 years ago
Xudong Cai
b44e47b087
refactor: optimize the code and use golangci-lint to check for any errors ( #1298 )
...
* feat: optimize the code and use golangci-lint to check for any errors
* fix: TestLogger unit test
3 years ago
Windfarer
a128566cef
test(transport) add test ( #1325 )
...
* test
* test client and server
* return
* add args
* calloption
* test
3 years ago
Windfarer
f93084ba9f
test: option tests ( #1292 )
...
* test options
* more tests
4 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
zwhyb
407250bf6c
create watcher overtime ( #1263 )
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