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
180909
add67beeb3
fix(http/binding): fix http encode url ( #2400 )
...
`/api/v1/[name]`
2 years ago
Tony Chen
2d325fd386
fix(http/binding): fix http encode url ( #2392 )
...
* fix(http/binding): fix http encode url
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
0ed01efdfd
revise err logic or null pointer exception ( #2376 )
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 )
2 years ago
jesse.tang
73a8323ee7
fix: slice/map make init cap ( #2300 )
2 years ago
pwli
bdfeb4bf78
fix typo ( #2284 )
...
Co-authored-by: pwli0755 <lipw0755@gmial.com>
2 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>
2 years ago
Kagaya
e4d73db523
fix lint error ( #2266 )
2 years ago
shifengbin
c407afc81d
fix: in case url or form bind param error should return BadRequest ( #2256 )
...
* fix: binding url or form convert type error should be return BadRequest
* golint
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
Tony Chen
0bcdb8d59c
fix(encoding/form): encode optional value ( #2155 )
...
* fix form encode optional value
* fix test
Co-authored-by: chenzhihui <chenzhihui@bilibili.com>
3 years ago
Tony Chen
a0e624c0b8
fix(binding): fix bind field mask ( #2112 )
...
* fix bind field mask
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
workman-Lu
d1550b366b
The clear interaction for user ( #1916 )
...
Content-type is not be promise from RFC2616 7.2.1.
it may be need a clear describe info:)
3 years ago
虫子樱桃
c6f6caa887
Add Flusher type alias . ( #2078 )
...
Co-authored-by: czyt <czyt@w.cn>
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
1b3529fd0b
transport/http(feat): add redirector to forward request ( #2074 )
...
* add redirector to forward request
Co-authored-by: chenzhihui <chenzhihui@bilibili.com>
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
Tony Chen
6eae1745bd
http: handle default mux ( #2033 )
3 years ago
haiyux
71ea97fd93
deps: upgrade go mod version ( #2028 )
...
* deps:upgrade go mod version
3 years ago
songzhibin97
5e0744a47b
Update encode.go ( #2019 )
3 years ago
pwli
f0a058713f
fix:(transport/http): fix unexpected overriding behavior when return an error ( #1984 )
...
* fix:(transport/http): fix unexpected overriding behavior when return an error
* fix:(transport/http): fix broken tests
Co-authored-by: pwli0755 <lipw0755@gmial.com>
3 years ago
张东龙
60465ccca2
fix(transport/http): responseEncoder should not write any data when it need to write nil ( #1945 )
...
* fix(transport/http): responseEncoder should not write any data when it need to write nil
* test(transport/http): adjust the test of response encoder encode nil value
* fix(transport/http): remove content-type setting
3 years ago
张东龙
259cd84653
fix bind test errors ( #1950 )
...
* test(transport): fix assertion condition error
* test(transport): it need a unparsed request
3 years ago
李洛克
4472cdbf49
fix client do method done not use when err not nil ( #1948 )
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
a72fc68ffd
feat: add error cause for statck trace ( #1910 )
...
* add error cause for statck trace
3 years ago
Tony Chen
fd2335ba38
add json codec for grpc ( #1908 )
3 years ago
包子
558ef4ebae
fix(transport): fix the problem that the context is not delivered correctly ( #1906 )
3 years ago
Tony Chen
c550a886e9
fix: decode empty body ( #1882 )
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