1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-22 03:38:41 +02:00

189 Commits

Author SHA1 Message Date
Tony Chen
d0a0edf67b
feat(http): add http router walk (#2181)
* add http router walk

Co-authored-by: chenzhihui <chenzhihui@bilibili.com>
2022-07-11 19:32:54 +08:00
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
2022-07-10 20:34:19 +08:00
Tony Chen
6ac63e6439
fix(transport): http endpoint listening (#2180)
* fix http serve

* fix endpoint nil

Co-authored-by: chenzhihui <chenzhihui@bilibili.com>
2022-07-10 16:33:52 +08:00
Tony Chen
c90eab4577
fix transport early listening (#2177)
Co-authored-by: chenzhihui <chenzhihui@bilibili.com>
2022-07-10 15:11:18 +08:00
Tony Chen
0bcdb8d59c
fix(encoding/form): encode optional value (#2155)
* fix form encode optional value

* fix test

Co-authored-by: chenzhihui <chenzhihui@bilibili.com>
2022-07-07 22:53:28 +08:00
Tony Chen
a0e624c0b8
fix(binding): fix bind field mask (#2112)
* fix bind field mask


Co-authored-by: chenzhihui <chenzhihui@bilibili.com>
2022-06-19 20:16:58 +08:00
longxboy
123fc1e6c8
feat: add peer for selector (#2088)
* add peer for selector
2022-06-07 22:38:21 +08:00
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:)
2022-06-03 00:33:32 +08:00
虫子樱桃
c6f6caa887
Add Flusher type alias . (#2078)
Co-authored-by: czyt <czyt@w.cn>
2022-06-03 00:24:33 +08:00
haiyux
ad5e9032a3
feat: make secure url to grpcs://127.0.0.1/ (#2072)
* feat:make secure url to grpcs://127.0.0.1/
2022-06-02 19:05:01 +08:00
Tony Chen
1b3529fd0b
transport/http(feat): add redirector to forward request (#2074)
* add redirector to forward request

Co-authored-by: chenzhihui <chenzhihui@bilibili.com>
2022-06-02 18:55:28 +08:00
Tony Chen
dccee86141
log: remove component logger to use global logger (#2061)
* remove component logger to user global logger
2022-05-27 16:29:07 +08:00
Tony Chen
6eae1745bd
http: handle default mux (#2033) 2022-05-23 23:52:25 +08:00
haiyux
71ea97fd93
deps: upgrade go mod version (#2028)
* deps:upgrade go mod version
2022-05-22 21:18:46 +08:00
songzhibin97
5e0744a47b
Update encode.go (#2019) 2022-05-21 16:21:36 +08:00
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>
2022-05-19 22:43:53 +08:00
张东龙
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
2022-04-27 20:16:13 +08:00
张东龙
259cd84653
fix bind test errors (#1950)
* test(transport): fix assertion condition error

* test(transport): it need a unparsed request
2022-04-25 15:10:41 +08:00
李洛克
4472cdbf49
fix client do method done not use when err not nil (#1948) 2022-04-25 15:10:19 +08:00
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
2022-04-22 20:06:29 +08:00
Tony Chen
d0b704b8f3
feat(selector): add node scheme (#1932)
* add node scheme
2022-04-14 13:48:20 +08:00
Tony Chen
a72fc68ffd
feat: add error cause for statck trace (#1910)
* add error cause for statck trace
2022-04-10 16:15:34 +08:00
Tony Chen
fd2335ba38
add json codec for grpc (#1908) 2022-04-03 00:48:54 +08:00
包子
558ef4ebae
fix(transport): fix the problem that the context is not delivered correctly (#1906) 2022-04-01 10:52:32 +08:00
Tony Chen
c550a886e9
fix: decode empty body (#1882) 2022-03-17 10:04:48 +08:00
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>
2022-03-10 22:42:44 +08:00
haiyux
370a1585a5
fix: fix the latest version of lint problem (#1825) 2022-02-18 17:13:41 +08:00
yangjianfeng9527
f050b07432
fixed the problem that grpc stop could not close properly
Co-authored-by: coco <>
2022-01-19 18:36:46 +08:00
haiyux
89583885e4
feat:add stream interceptor use ctx encapsulation (#1770)
* feat:add stream interceptor use ctx encapsulation

* add reply header
2022-01-17 19:58:27 +08:00
haiyux
00c05e82a3
test:remove testify go mod (#1766)
* test:remove testify go mod

* tidy go mdo

* fix test
2022-01-14 10:02:42 +08:00
MARATRIX Li
c6c5e4595c
optimization: optimize global logger (#1763) 2022-01-13 10:11:23 +08:00
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
2022-01-12 15:34:49 +08:00
haiyux
da70e22201
upgrade:upgrade grpc and opentelemetry version (#1751)
* upgrade:upgrade grpc and opentelemetry version

* upgrade jaeger

* fix lint
2022-01-06 20:29:18 +08:00
haiyux
7f003a8742
test(transport): add transport Listener test (#1735)
* test(tansport): add transport Listener test
2021-12-31 11:15:39 +08:00
haiyux
3625634d3c
feat(transport):add grpc and http with listen (#1729)
* feat(transport):add grpc and http with listen
2021-12-30 20:38:22 +08:00
Jason Song
b421389227
fix: remove the use of client timeout as discovery time (#1715) 2021-12-29 20:33:16 +08:00
Tony Chen
11a6120a2e
fix FieldMask are converted to/from lower-camel naming conventions. (#1724) 2021-12-28 20:31:23 +08:00
包子
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