1
0
mirror of https://github.com/go-kratos/kratos.git synced 2026-05-22 10:15:24 +02:00
Commit Graph

152 Commits

Author SHA1 Message Date
包子 5aeb14d381 feat(transport/grpc): gRPC client discovery supports incoming logger and timeout (#1702) 2021-12-22 09:08:46 +08:00
Cluas e1e8184768 transport/http: delay pass context.Context (#1684)
* transport/http: fix http request do not with ctx from user
2021-12-13 14:30:34 +08:00
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
2021-12-03 17:21:56 +08:00
longxboy 98fd40bcb4 revert to select filters (#1656) 2021-11-29 10:55:11 +08:00
haiyux 27cfec93d6 optimize:chan bool to chan struct{} (#1648) 2021-11-24 17:21:01 +08:00
haiyux 3607ce1b92 feat: upgrade grpc version to 1.42.0 (#1626) 2021-11-18 00:38:31 +08:00
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>
2021-11-16 13:22:35 +08:00
longxboy 988c2312b4 feat: add base fitler to improve performace (#1612)
* add node filter

Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
2021-11-08 15:22:04 +08:00
letian 32272fe441 feat(http): http client support service discovery in Do (#1563) 2021-11-05 16:47:34 +08:00
longxboy cd79c2a458 feat: add raw node (#1611)
* add raw node to improve performace
2021-11-05 16:43:40 +08:00
Tony Chen b353ab91f1 add pprof handler (#1587) 2021-10-27 23:50:45 +08:00
海雨 3da927759a test: add transport http test (#1579)
* test: add transport http test

* fix lient

* add client

* add http test
2021-10-22 15:57:18 +08:00
longxboy 91714bcd34 test: add transport grpc test (#1580)
* add transport grpc test

* fix node
2021-10-22 15:57:01 +08:00
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
2021-10-22 09:25:58 +08:00
longxboy 52876d3e20 test: add app and transport test (#1572)
* add app and transport test
2021-10-20 22:03:39 +08:00
longxboy 86dec76aa3 fix global selector bug (#1564) 2021-10-18 19:26:00 +08:00
longxboy 210e414e6f fix: fix encode proto well known types in form and url query (#1559)
* fix encode proto well known types
2021-10-17 15:36:43 +08:00
longxboy 056812e4b2 feat: add http transport interface (#1533)
feat: add http transport interface
2021-10-08 11:10:21 +08:00
longxboy feeec630d7 feat: add selector and filters examples (#1485)
* add selector examples and filters
2021-09-23 17:42:21 +08:00
longxboy 3cbe4755ed fix http resvoler test case (#1496) 2021-09-20 10:33:26 +08:00
seasrain 423b60b330 fix:http server start panic when use Endpoint (#1492) 2021-09-18 11:24:02 +08:00
seasrain 55e00ce9f3 fix:server start panic when use Endpoint (#1491)
* fix:server start panic when use Endpoint

* fix test

* fix lint
2021-09-17 10:13:50 +08:00
letian db2122860d add endpoint option in grpc server (#1488) 2021-09-17 04:19:49 +08:00
longXboy 039ce62778 remove http client call option:selectFilter 2021-09-16 10:35:48 +08:00
letian 894fc1a058 fix defer leak (#1477) 2021-09-15 18:06:21 +08:00
seasrain 1dd8786ed9 fix:move test proto file to internal (#1471)
* fix:move test proto file to internal
2021-09-14 15:54:43 +08:00
letian 754d83ea9d add test for HandleHeader (#1467) 2021-09-13 10:57:08 +08:00
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>
2021-09-12 15:14:21 +08:00
Tony Chen 0184d217cf fix(transport/grpc): default base ctx (#1465)
* fix grpc base ctx
2021-09-12 01:07:44 +08:00
seasrain 798adbff5e fix:http rehister url lack / (#1464)
* fix: set strictSlash true
2021-09-12 00:45:22 +08:00
seasrain 8b1086ad56 fix: optimizate with context (#1460)
* fix: optimizate with context
2021-09-10 21:44:41 +08:00
letian 4bdafa6393 feat: add http header handler (#1461) 2021-09-10 17:57:07 +08:00
Tony Chen aed6af7acc fix http server handler (#1456) 2021-09-09 23:12:48 +08:00
Kagaya 736fb38e79 fix: examples lint error (#1454)
* fix example lint error

* use latest version lint

* ignore zap Sync error
2021-09-09 20:45:08 +08:00
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>
2021-09-05 23:25:33 +08:00
Casper-Mars 515b71ec90 test(transport/http):fix nil problem (#1406) 2021-09-01 16:02:30 +08:00
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
2021-08-31 10:14:57 +08:00
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
2021-08-16 10:35:08 +08:00
Windfarer a128566cef test(transport) add test (#1325)
* test

* test client and server

* return

* add args

* calloption

* test
2021-08-12 19:21:50 +08:00
Windfarer f93084ba9f test: option tests (#1292)
* test options

* more tests
2021-08-02 18:56:22 +08:00
Tony Chen bc35f20228 feat(endpoint): add endpoint parser (#1273)
* feat(endpoint): add endpoint parser

* fix parseTarget ut

* fix insecure testing
2021-07-29 10:11:38 +08:00
zwhyb 8f4e78b47d grpc‘s secure discovery (#1270)
* add gprc secure discovery

* add http insecure filter
2021-07-28 23:10:02 +08:00
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>
2021-07-28 13:36:15 +08:00
wz ce0cba4f41 fix(transport/http): typo (#1268)
Co-authored-by: 王真 <zhen.wang@yo-star.com>
2021-07-28 13:05:58 +08:00
zwhyb 407250bf6c create watcher overtime (#1263) 2021-07-27 15:52:24 +08:00
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
2021-07-26 23:44:41 +08:00
xianmian168 05c44d9033 repair some misspelling (#1248)
* Update calloption.go

* Update random.go

repair   misspelling
2021-07-25 22:05:14 +08:00
喵喵大人 d09ba5e3ee style: add gosimple linter and gofmt linter (#1242) 2021-07-25 12:09:38 +08:00
longxboy dca963a236 fix http resovler bug (#1231)
* fix http resovler bug

* delete unused code
2021-07-23 22:42:52 +08:00
longxboy a02d9b4192 add zero endpoint protection (#1215)
* add zero endpoint protection
2021-07-20 13:36:19 +08:00