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
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
包子
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
00c05e82a3
test:remove testify go mod ( #1766 )
...
* test:remove testify go mod
* tidy go mdo
* fix test
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
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
Tony Chen
11a6120a2e
fix FieldMask are converted to/from lower-camel naming conventions. ( #1724 )
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
Tony Chen
b353ab91f1
add pprof handler ( #1587 )
3 years ago
海雨
3da927759a
test: add transport http test ( #1579 )
...
* test: add transport http test
* fix lient
* add client
* add http test
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
210e414e6f
fix: fix encode proto well known types in form and url query ( #1559 )
...
* fix encode proto well known types
3 years ago
longxboy
056812e4b2
feat: add http transport interface ( #1533 )
...
feat: add http transport interface
3 years ago
longxboy
feeec630d7
feat: add selector and filters examples ( #1485 )
...
* add selector examples and filters
3 years ago
longxboy
3cbe4755ed
fix http resvoler test case ( #1496 )
3 years ago
seasrain
423b60b330
fix:http server start panic when use Endpoint ( #1492 )
3 years ago
longXboy
039ce62778
remove http client call option:selectFilter
3 years ago
letian
894fc1a058
fix defer leak ( #1477 )
3 years ago
seasrain
1dd8786ed9
fix:move test proto file to internal ( #1471 )
...
* fix:move test proto file to internal
3 years ago
letian
754d83ea9d
add test for HandleHeader ( #1467 )
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
seasrain
798adbff5e
fix:http rehister url lack / ( #1464 )
...
* fix: set strictSlash true
3 years ago
seasrain
8b1086ad56
fix: optimizate with context ( #1460 )
...
* fix: optimizate with context
4 years ago
letian
4bdafa6393
feat: add http header handler ( #1461 )
4 years ago
Tony Chen
aed6af7acc
fix http server handler ( #1456 )
4 years ago
Kagaya
736fb38e79
fix: examples lint error ( #1454 )
...
* fix example lint error
* use latest version lint
* ignore zap Sync error
4 years ago
letian
fa54a1dd3a
feat: Support custom status code conversion from HTTP and gRPC. ( #1410 )
...
* feat: Support custom status code conversion from HTTP and gRPC.
Co-authored-by: Letian Yi <yiletian@webull.com>
4 years ago
Casper-Mars
515b71ec90
test(transport/http):fix nil problem ( #1406 )
4 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
4 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
4 years ago
Windfarer
a128566cef
test(transport) add test ( #1325 )
...
* test
* test client and server
* return
* add args
* calloption
* test
4 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
wz
ce0cba4f41
fix(transport/http): typo ( #1268 )
...
Co-authored-by: 王真 <zhen.wang@yo-star.com>
4 years ago
王真
b04e214ec8
fix annotation
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
xianmian168
05c44d9033
repair some misspelling ( #1248 )
...
* Update calloption.go
* Update random.go
repair misspelling
4 years ago
喵喵大人
d09ba5e3ee
style: add gosimple linter and gofmt linter ( #1242 )
4 years ago