ibrahim albarghouthi
3958f9d5c0
refactor: metadata supports key corresponding to multiple values ( #2772 )
...
* Adding Add/Values fn for transport and metadata layers, fixed tests and included tests to new functionaltieis, updated metadata middleware to append instead of hard set of key-values
* Remove useless function
* Linit fix
---------
Co-authored-by: Ibrahim Barghouthi <ibrahim.barghouthi@cenomi.com>
2 years ago
jessetang
d470886977
refactor(transport): format import and init slice cap ( #2741 )
...
* fix(transport): format import and init slice cap
* fix lint: local-prefixes: github.com/go-kratos
---------
Co-authored-by: haiyux <haiyux@foxmail.com>
2 years ago
jessetang
9a973d29c2
fix: rectification of non-standard lint codes ( #2746 )
2 years ago
jessetang
0c2d2632ac
fix(transport/grpc/resolver/discovery/resolver.go): remove attributes.Attributes.New() ( #2742 )
2 years ago
包子
8af9ca33bd
feat: support grpc balancer health check ( #2736 )
2 years ago
包子
768ffd71d4
fix(grpc/balancer): fix the problem that the watch log cannot be closed ( #2726 )
2 years ago
包子
834b781ee2
feat: support load balance for streaming connection creation ( #2669 )
...
* feat: support load balance for streaming connection creation
* fix lint
2 years ago
cui fliter
239121155d
chore: fix comment ( #2645 )
...
Signed-off-by: cui fliter <imcusg@gmail.com>
2 years ago
liyaopinner
35800916dc
feat: add grpc client stream interceptor opts ( #2610 )
...
Co-authored-by: yao.li <yao.li@cloudminds.com>
2 years ago
longxboy
bebea0c103
feat: add subset alg for instances ( #2613 )
...
* add subset alg for instances
* fix go build
* update go sum
* fix lint
* fix gofmt
* fix lint
* fix polaris
Co-authored-by: caoguoliang01 <caoguoliang01@bilibili.com>
2 years ago
包子
480b16b817
feat: grpc use the admin api ( #2596 )
...
* feat: grpc use the admin api
2 years ago
Aurélien Perrier
d779faf091
feat(transport/grpc): support custom healthcheck ( #2541 )
...
* feat(transport/grpc): support custom healthcheck
* fix: parameters grpc server
* fix(transport/grpc): optional CustomHealth
* fix(transport/grpc): useless argument
2 years ago
jesse.tang
c5e86ca36d
style: kratos interface check ( #2441 )
...
* style: kratos interface check
* fix: kratos interface check
2 years ago
jesse.tang
0e698b248a
cleanup: remove fmt and errors new err ( #2377 )
...
* cleanup: remove fmt and errors new err
* fix lint
* fix style
* modify global variable
2 years ago
jesse.tang
4d95050747
fix: fmt import ( #2379 )
2 years ago
jesse.tang
080165f2ee
cleanup: modify deprecated field ( #2380 )
2 years ago
jesse.tang
9737a3c5e4
fix: typo and grammatical errors ( #2368 )
...
* fix: grammar
* fix: grammar
* fix overrode
* translate to English
* translate to English
2 years ago
Loner1024
d3f80c1061
test: supplement the unit testing of transport/grpc ( #2371 )
...
* test:grpc codec test
* style:go fmt
* refactor:delete useless code
* style:go fmt
2 years ago
jesse.tang
f2a33929d0
fix: modify interface check way ( #2375 )
...
* fix: modify interface check way
* fix
2 years ago
Wang-TaoTao
ad7597c0b1
fix: init global selector to wrr ( #2323 )
3 years ago
jesse.tang
73a8323ee7
fix: slice/map make init cap ( #2300 )
3 years ago
longxboy
11cd43e3c3
refactor: unify selector filter ( #2277 )
...
* unify selector
Co-authored-by: caoguoliang01 <caoguoliang01@bilibili.com>
Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
3 years ago
Kagaya
e4d73db523
fix lint error ( #2266 )
3 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