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

1284 Commits

Author SHA1 Message Date
haiyux 4d3092b7aa test(errors): add errors test (#1739)
* test(errors): add errors test

* fix lint
2022-01-01 23:01:51 +08:00
haiyux f38cd9875f optimization: optimize error (#1740) 2022-01-01 23:01:24 +08:00
letian d2f8b45603 feat(registry/consul): add WithHeartbeat option (#1738) 2022-01-01 11:51:22 +08:00
letian 1e749de5db fix(registry/consul):fix can't get service instance in async mode (#1731)
* fix(registry/consul):fix can't get service instance in async mode

* fix(registry/consul): return error if find service failed
2022-01-01 11:48:38 +08:00
letian 17201cd284 fix(registry/consul): fix can not find service in 20s (#1728)
* fix(registry/consul): fix can not find service in 20s
2021-12-31 16:31:19 +08:00
haiyux ed86f36476 feat(examples/):add etcd registry cmux example (#1734) 2021-12-31 14:11:08 +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
haiyux d9530ed54b fix(cmd/kratos): add look protoc-gen-openapi when use kratos proto client (#1726) 2021-12-28 22:20:36 +08:00
Tony Chen 11a6120a2e fix FieldMask are converted to/from lower-camel naming conventions. (#1724) 2021-12-28 20:31:23 +08:00
Giovanny Gutiérrez b6b95089c4 fix(cmd/protoc-gen-go-http): Fix when replacement rule is not ending (#1721) 2021-12-28 15:41:38 +08:00
aldslvda c1ab0cce3c fix: fix typo in cmd/protoc-gen-go-http/http.go(is does not -> does not) (#1718) 2021-12-28 10:53:30 +08:00
包子 3642f5d0ba feat(cmd/kratos): generating API documentation using Gnostic (#1716) 2021-12-27 16:39:28 +08:00
Giovanny Gutiérrez ccb649a201 fix(protoc-gen-go-http): Update http rule when path mappings (#1704)
* fix(cmd/protoc-gen-go-http): Follow the http rule to use the query string
2021-12-26 21:13:38 +08:00
Xudong Cai e95452276f fix(cmd): fixed a camel word enum error 2021-12-24 14:10:50 +08:00
包子 0e72cc2dcb fix(cmd/proto-gen-http-go): remove go.mod replace (#1707) 2021-12-22 16:24:35 +08:00
包子 1117350b9c deps: update kratos version to 2.1.3 (#1706) v2.1.3 2021-12-22 14:15:09 +08:00
包子 5aeb14d381 feat(transport/grpc): gRPC client discovery supports incoming logger and timeout (#1702) 2021-12-22 09:08:46 +08:00
白玉堂 72f9cc3518 docs: some wrong err msg description 2021-12-22 09:08:29 +08:00
JerryZhou 94d674fd4c fix(cmd/proto-gen-errors): non nil assertion for error (#1700) 2021-12-20 11:10:01 +08:00
包子 32158bcef2 fix(nacos): call unsubscribe when watching is stopped (#1697) 2021-12-17 11:08:16 +08:00
hshe 7aa9f352f8 fix:internal/host:选择ip未判断ip是否可用&&返回序号最小的ip(#1686) (#1687) 2021-12-16 22:41:44 +08:00
Cluas 03f5ee015c consul: support WithServiceResolver option (#1693)
* consul: add endpoints resolver option

* consul: resolver []*api.ServiceEntry -> []*registry.ServiceInstance

* consul: rename Resolver -> ServiceResolver
2021-12-16 22:24:43 +08:00
haiyux 2e045c3e42 feat: middleware seletor add ctx match (#1652)
* feat: middleware seletor add headers match

* fix

* add some annotation

* add ctx seletor

* fix match function

* update match
2021-12-13 21:31:01 +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
Cluas 5df28f4fdc registry/nacos: reduce twice string copies (#1681)
* registry/nacos: reduce two string copies

* registry/nacos: update example
2021-12-10 00:14:35 +08:00
kiripeng 041ffffb15 fix: map 其桶中只能存储 8 个键值对元素,超过后会储存到溢出桶或者扩容,影响性能,预先声明容量以免影响性能 (#1671) 2021-12-09 23:29:47 +08:00
xiaoxiaodek 413cc77f7d fix(config): apollo close function: useless infinite loop causes high cpu usage (#1674)
Co-authored-by: wangshaosen <wangshaosen@videopls.com>
2021-12-09 23:27:17 +08:00
Richard c9e19f1d98 chore: completion command in the comment (#1680) 2021-12-09 23:24:39 +08:00
china小宇 83ebf53b93 fix: circuitbreaker use client context (#1679) 2021-12-09 23:20:46 +08:00
songzhibin97 8c9e70b47b style: format (#1667)
* style: format

* fix:ci
2021-12-08 00:17:24 +08:00
sxpsxp12 63a7ffae04 fix: fix nacos.Register many endpoint metadata kind error (#1664)
* fix: fix nacos.Register metadata map type reference bug --user=sxpsxp12

* fix: fix golangci-link error

Co-authored-by: songxiaopeng <xiaopeng.song@infwaves.com>
2021-12-05 02:33:55 +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
leyou240 67161b62eb feat(registry/nacos): add default kind option (#1650) 2021-12-02 11:38:01 +08:00
longxboy 98fd40bcb4 revert to select filters (#1656) 2021-11-29 10:55:11 +08:00
Wimi Yuan 2acede53f3 feat(app): app info delivery to stop context (#1649) 2021-11-24 17:21:29 +08:00
haiyux 27cfec93d6 optimize:chan bool to chan struct{} (#1648) 2021-11-24 17:21:01 +08:00
haiyux ef3322ec07 fix: remove cmd replace (#1640) 2021-11-19 17:14:24 +08:00
包子 7e0045cd0f fix: nacos a vulnerable dependency was referenced (#1639)
* fix: replace jsonparser version

* fix

* fix
v2.1.2
2021-11-19 15:29:16 +08:00
包子 6b53d7d229 deps: upgrade 2.1.2 (#1638)
* deps: upgrade 2.1.2

* fix lint
2021-11-19 15:02:49 +08:00
wuxingzhong 7d821541b3 fix doc (#1636) 2021-11-18 21:22:19 +08:00
lcsin 3231b35420 Update main.go (#1627) 2021-11-18 00:39:27 +08:00
haiyux 3607ce1b92 feat: upgrade grpc version to 1.42.0 (#1626) 2021-11-18 00:38:31 +08:00
haiyux 05ecd2ce2c fix:add consul all health check (#1620)
* fix:add consul all health check

Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
2021-11-16 14:23:23 +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
Giovanny Gutiérrez 7a52468ea8 fix(cmd/protoc-gen-go-http): follow the http rule to use query strings (#1629) 2021-11-15 11:52:31 +08:00
包子 268243d8a3 fix(cmd/new): print the correct error message (#1630) 2021-11-14 13:32:10 +08:00
李鑫 780a6c0527 docs of etcd config (#1622) 2021-11-12 23:16:50 +08:00
yeqown c392528e11 docs: replenish config/apollo and registry/discovery readme (#1625)
* docs(config/apollo): replenish config/apollo readme

* docs(registry/discovery): replenish registry/discovery readme

* docs: complete docs of config/apollo and registry/discovery
2021-11-12 23:16:12 +08:00