1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-14 02:33:03 +02:00
Commit Graph

1666 Commits

Author SHA1 Message Date
包子
33d51a84c3
feat(registry): consul support re-registry when service does not exist (#2606) 2023-01-09 11:48:12 +08:00
longxboy
eafbe908a8
feat:add buf apis (#2604)
* add buf
2023-01-05 17:12:50 +08:00
dependabot[bot]
f49ac647e8
build(deps): bump github.com/aliyun/aliyun-log-go-sdk (#2598)
Bumps [github.com/aliyun/aliyun-log-go-sdk](https://github.com/aliyun/aliyun-log-go-sdk) from 0.1.42 to 0.1.43.
- [Release notes](https://github.com/aliyun/aliyun-log-go-sdk/releases)
- [Commits](https://github.com/aliyun/aliyun-log-go-sdk/compare/v0.1.42...v0.1.43)

---
updated-dependencies:
- dependency-name: github.com/aliyun/aliyun-log-go-sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-05 16:44:00 +08:00
baeNewJeans
65c51594f9
fix(contrib/registry/etcd): rewatch when error occur (#2603)
* fix(contrib/registry/etcd): rewatch when error occur

* fix(contrib/registry/etcd): close watcher before renew

* fix(contrib/registry/etcd): use w.ctx

Co-authored-by: zhangweili <zhangweili@bilibili.com>
2023-01-05 15:53:36 +08:00
包子
480b16b817
feat: grpc use the admin api (#2596)
* feat: grpc use the admin api
2023-01-02 21:32:29 +08:00
dependabot[bot]
b26023888d
build(deps): bump github.com/hashicorp/consul/api (#2561)
Bumps [github.com/hashicorp/consul/api](https://github.com/hashicorp/consul) from 1.15.3 to 1.18.0.
- [Release notes](https://github.com/hashicorp/consul/releases)
- [Changelog](https://github.com/hashicorp/consul/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/consul/compare/api/v1.15.3...api/v1.18.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/consul/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-01 20:19:18 +08:00
刘思圆
a3f24ee704
fix(contrib/log/tencent): tencentcloud-cls-sdk-go 为异步上传,需要显式调用"Start"方法开启才会生效 (#2514) 2023-01-01 20:17:14 +08:00
Remember
271b6c2924
fix(consul):return err if ctx is done (#2550) 2023-01-01 20:15:28 +08:00
Luckystar
c442a320a0
feat: support for windows make install (#2554)
Co-authored-by: luckystar <game1991@github.com>
2023-01-01 20:14:01 +08:00
soukengo
b0db594829
fix(registry): add zookeeper exists watcher when the node does not exist (#2555)
* fix(registry): add zookeeper exists watcher when the node does not exist

* fix(registry): add zookeeper exists watcher when the node does not exist

Co-authored-by: soukengo <soukengo@163.com>
2023-01-01 20:10:57 +08:00
dependabot[bot]
33fff02a62
build(deps): bump github.com/aliyun/aliyun-log-go-sdk (#2577)
Bumps [github.com/aliyun/aliyun-log-go-sdk](https://github.com/aliyun/aliyun-log-go-sdk) from 0.1.41 to 0.1.42.
- [Release notes](https://github.com/aliyun/aliyun-log-go-sdk/releases)
- [Commits](https://github.com/aliyun/aliyun-log-go-sdk/compare/v0.1.41...v0.1.42)

---
updated-dependencies:
- dependency-name: github.com/aliyun/aliyun-log-go-sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-01 20:06:35 +08:00
Juan C. Yamacho H
d12498ed38
feat(middleware): redacter interface for logging (#2564) 2023-01-01 20:05:43 +08:00
虫子樱桃
852a77faa6
Feat project create with dir name add test (#2576)
* fix issue:#2358 Support for creating a project with specifying the name for its place dir

* add test and fixed path of dir

* fixed bug:nomod param not working as expect

* fix test

* fix go1.16 unit test

Co-authored-by: czyt <czyt@w.cn>
2023-01-01 20:02:39 +08:00
dependabot[bot]
6f78ccacd9
build(deps): bump k8s.io/apimachinery in /contrib/config/kubernetes (#2581)
Bumps [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) from 0.24.3 to 0.26.0.
- [Release notes](https://github.com/kubernetes/apimachinery/releases)
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.24.3...v0.26.0)

---
updated-dependencies:
- dependency-name: k8s.io/apimachinery
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-01 20:00:05 +08:00
dependabot[bot]
2c3fab50a3
build(deps): bump actions/setup-go from 3.3.1 to 3.5.0 (#2585)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 3.3.1 to 3.5.0.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v3.3.1...v3.5.0)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-01 19:59:37 +08:00
dependabot[bot]
2a9808df14
build(deps): bump github.com/polarismesh/polaris-go (#2589)
Bumps [github.com/polarismesh/polaris-go](https://github.com/polarismesh/polaris-go) from 1.2.0 to 1.3.0.
- [Release notes](https://github.com/polarismesh/polaris-go/releases)
- [Changelog](https://github.com/polarismesh/polaris-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/polarismesh/polaris-go/compare/v1.2.0...v1.3.0)

---
updated-dependencies:
- dependency-name: github.com/polarismesh/polaris-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-01 19:59:11 +08:00
dependabot[bot]
89d8eeba62
build(deps): bump github.com/apolloconfig/agollo/v4 (#2591)
Bumps [github.com/apolloconfig/agollo/v4](https://github.com/apolloconfig/agollo) from 4.2.1 to 4.3.0.
- [Release notes](https://github.com/apolloconfig/agollo/releases)
- [Commits](https://github.com/apolloconfig/agollo/compare/v4.2.1...v4.3.0)

---
updated-dependencies:
- dependency-name: github.com/apolloconfig/agollo/v4
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-01 19:58:42 +08:00
dependabot[bot]
a017ab0957
build(deps): bump github.com/hashicorp/consul/api (#2563)
Bumps [github.com/hashicorp/consul/api](https://github.com/hashicorp/consul) from 1.15.3 to 1.18.0.
- [Release notes](https://github.com/hashicorp/consul/releases)
- [Changelog](https://github.com/hashicorp/consul/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/consul/compare/api/v1.15.3...api/v1.18.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/consul/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-20 14:57:44 +08:00
baozhecheng
a45f3afdff Revert "feat: support polaris service governance"
This reverts commit b67d514bfa.
2022-12-20 14:56:36 +08:00
baozhecheng
b67d514bfa feat: support polaris service governance 2022-12-20 14:55:50 +08:00
Xingwang Liu
facafba64a
fix(registry): ServiceInstance does not implement an Equal method for grpc Attributes. (#2575) 2022-12-16 11:01:04 +08:00
baozhecheng
e36612e9ca Revert "fix issue:#2358 Support for creating a project with specifying the name for its place dir (#2573)"
This reverts commit 3d322fe6c1.
2022-12-12 23:29:54 +08:00
虫子樱桃
3d322fe6c1
fix issue:#2358 Support for creating a project with specifying the name for its place dir (#2573)
Co-authored-by: czyt <czyt@w.cn>
2022-12-12 10:34:30 +08:00
woniu317
2cf82fa4a7
feat: consul registry support get services from multiple datacenters (#2536)
* feat: consul支持多数据中心

* feat: fix comments

* refactor: param name

* fix: comments fix

* refactor: param name

* refactor: function name
2022-11-30 12:17:48 +08:00
jessetang
3393990cd8
test(encoding/form/encode): add test and fix code style (#2539)
* test(encoding/form/encode): add test and fix code style

Signed-off-by: demoManito <1430482733@qq.com>

* fix lint

Signed-off-by: demoManito <1430482733@qq.com>

Signed-off-by: demoManito <1430482733@qq.com>
2022-11-30 12:17:19 +08:00
dependabot[bot]
3c3829795c
build(deps): bump github.com/aliyun/aliyun-log-go-sdk (#2548)
Bumps [github.com/aliyun/aliyun-log-go-sdk](https://github.com/aliyun/aliyun-log-go-sdk) from 0.1.40 to 0.1.41.
- [Release notes](https://github.com/aliyun/aliyun-log-go-sdk/releases)
- [Commits](https://github.com/aliyun/aliyun-log-go-sdk/compare/v0.1.40...v0.1.41)

---
updated-dependencies:
- dependency-name: github.com/aliyun/aliyun-log-go-sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-30 12:16:40 +08:00
Ccheers
8732b76386
fix(circuitbreaker): add WithCircuitBreaker to fix WithGroup is useless (#2535) 2022-11-29 11:23:02 +08:00
Aurélien Perrier
d779faf091
feat(transport/grpc): support custom healthcheck (#2541)
* feat(transport/grpc): support custom healthcheck

* fix: parameters grpc server

* fix(transport/grpc): optional CustomHealth

* fix(transport/grpc): useless argument
2022-11-28 17:29:22 +08:00
qshuai
a82c82d49f
fix(config): fix codec NPE as parsing format wrongly, fix #2517 (#2518)
* fix[config]: fix codec NPE as parsing format wrongly, fix #2517

* feat: add unit testing for namespace parsing
2022-11-26 18:44:01 +08:00
180909
c530d63e75
chore(cmd): use t.Cleanup (#2537) 2022-11-24 19:12:42 +08:00
包子
a7bae93ee0
deps: upgrade kratos version to v2.5.3 (#2500) 2022-11-10 23:00:34 +08:00
dependabot[bot]
b339ae8956
build(deps): bump github.com/apolloconfig/agollo/v4 (#2421)
Bumps [github.com/apolloconfig/agollo/v4](https://github.com/apolloconfig/agollo) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/apolloconfig/agollo/releases)
- [Commits](https://github.com/apolloconfig/agollo/compare/v4.2.0...v4.2.1)

---
updated-dependencies:
- dependency-name: github.com/apolloconfig/agollo/v4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-10 11:29:33 +08:00
dependabot[bot]
3f698aa2c0
build(deps): bump go.etcd.io/etcd/client/v3 in /contrib/registry/etcd (#2384)
Bumps [go.etcd.io/etcd/client/v3](https://github.com/etcd-io/etcd) from 3.5.4 to 3.5.5.
- [Release notes](https://github.com/etcd-io/etcd/releases)
- [Changelog](https://github.com/etcd-io/etcd/blob/main/Dockerfile-release.amd64)
- [Commits](https://github.com/etcd-io/etcd/compare/v3.5.4...v3.5.5)

---
updated-dependencies:
- dependency-name: go.etcd.io/etcd/client/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-10 11:28:15 +08:00
dependabot[bot]
c5888ff464
build(deps): bump google.golang.org/grpc in /contrib/opensergo (#2452)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.46.2 to 1.50.1.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.46.2...v1.50.1)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-10 11:27:00 +08:00
dependabot[bot]
878eca54ab
build(deps): bump google.golang.org/grpc in /contrib/config/etcd (#2453)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.46.2 to 1.50.1.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.46.2...v1.50.1)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-10 11:26:23 +08:00
yeqown
275f815e40
typo: correct var name (#2496) 2022-11-09 17:37:32 +08:00
Cluas
383f28faeb
fix(selector): set global do not work (#2489)
* fix(selector): set global do not work

* fix(selector): test

* fix(selector): return early

* fix(selector): use struct

* fix(selector): use struct
2022-11-09 17:36:36 +08:00
dependabot[bot]
e9ef3eea2d
build(deps): bump github.com/hashicorp/consul/api (#2472)
Bumps [github.com/hashicorp/consul/api](https://github.com/hashicorp/consul) from 1.14.0 to 1.15.3.
- [Release notes](https://github.com/hashicorp/consul/releases)
- [Changelog](https://github.com/hashicorp/consul/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/consul/compare/api/v1.14.0...api/v1.15.3)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/consul/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-08 09:59:07 +08:00
dependabot[bot]
58d9e3be56
build(deps): bump github.com/prometheus/client_golang (#2494)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.12.2 to 1.13.1.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/v1.13.1/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.12.2...v1.13.1)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-08 09:58:07 +08:00
dependabot[bot]
818452dd53
build(deps): bump github.com/polarismesh/polaris-go (#2493)
Bumps [github.com/polarismesh/polaris-go](https://github.com/polarismesh/polaris-go) from 1.1.0 to 1.2.0.
- [Release notes](https://github.com/polarismesh/polaris-go/releases)
- [Changelog](https://github.com/polarismesh/polaris-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/polarismesh/polaris-go/compare/v1.1.0...v1.2.0)

---
updated-dependencies:
- dependency-name: github.com/polarismesh/polaris-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-08 09:57:45 +08:00
dependabot[bot]
699f0304ed
build(deps): bump github.com/aliyun/aliyun-log-go-sdk (#2492)
Bumps [github.com/aliyun/aliyun-log-go-sdk](https://github.com/aliyun/aliyun-log-go-sdk) from 0.1.39 to 0.1.40.
- [Release notes](https://github.com/aliyun/aliyun-log-go-sdk/releases)
- [Commits](https://github.com/aliyun/aliyun-log-go-sdk/compare/v0.1.39...v0.1.40)

---
updated-dependencies:
- dependency-name: github.com/aliyun/aliyun-log-go-sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-08 09:56:49 +08:00
dependabot[bot]
c888d50cc5
build(deps): bump google.golang.org/grpc in /contrib/registry/etcd (#2454)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.46.2 to 1.50.1.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.46.2...v1.50.1)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-08 09:14:06 +08:00
jessetang
a1a2b9dbd9
test(encoding/form): add unit test and code style modift (#2467)
* test(encoding/form): add unit test and code style modift

* fix test

* add populateRepeatedField test
2022-11-08 09:13:35 +08:00
JellyTony
590c469081
feat: add app Before and Afters option (#2403)
* feat: add app Before and Afters option

* feat: before and Afters with context params

* style: declaration of "err" shadows declaration

Co-authored-by: JeffreyBool <zhanggaoyuan@mediatrack.cn>
2022-11-07 18:34:31 +08:00
Miguel Martínez Triviño
0f38511ea8
fix(filter): filter out keyvals if keyFunc is provided (#2484) 2022-11-07 14:24:41 +08:00
jessetang
511f1917ce
fix(contrib/log): test case error (#2487)
* fix(contrib/log): test case error

* fix float32

* add nil case
2022-11-07 14:20:56 +08:00
jessetang
2a65502be2
style(config): code style tweaks and abstracts some methods (#2465)
* style(config): code specification tweaks and abstracts some methods

* optimize

* modify func location
2022-11-02 18:15:33 +08:00
dependabot[bot]
03d9494b19
build(deps): bump github.com/hashicorp/consul/api (#2473)
Bumps [github.com/hashicorp/consul/api](https://github.com/hashicorp/consul) from 1.14.0 to 1.15.3.
- [Release notes](https://github.com/hashicorp/consul/releases)
- [Changelog](https://github.com/hashicorp/consul/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/consul/compare/api/v1.14.0...api/v1.15.3)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/consul/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-02 18:07:31 +08:00
dependabot[bot]
c4c1ebab47
build(deps): bump github.com/aliyun/aliyun-log-go-sdk (#2483)
Bumps [github.com/aliyun/aliyun-log-go-sdk](https://github.com/aliyun/aliyun-log-go-sdk) from 0.1.37 to 0.1.39.
- [Release notes](https://github.com/aliyun/aliyun-log-go-sdk/releases)
- [Commits](https://github.com/aliyun/aliyun-log-go-sdk/compare/v0.1.37...v0.1.39)

---
updated-dependencies:
- dependency-name: github.com/aliyun/aliyun-log-go-sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-02 18:06:22 +08:00
Tony Chen
f0878b0a78
fix ewma panic (#2480)
* fix ewma panic
2022-10-28 20:22:14 +08:00