1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-30 04:31:03 +02:00

192 Commits

Author SHA1 Message Date
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
jessetang
3c65f16737
style(contrib/config): code style modify (#2475) 2022-10-26 14:24:14 +08:00
包子
dcae38d656
deps: upgrade kratos version to v2.5.2 (#2464) 2022-10-19 22:37:16 +08:00
Jesse
a911f8f9ee
fix(log): toString float32 precision loss and convert uint use FormatUint (#2461)
* fix(log): toString float32 precision loss

* convert uint to string
2022-10-19 15:07:58 +08:00
Jesse
54655e4b24
cleanup: use HTTP package methods replace GET POST DELETE... (#2412) 2022-10-18 21:40:16 +08:00
Jesse
6bb3ad6f27
fix: in for defer close (#2411)
Resource leakage may occur. Call 'defer' in the 'for' loop.
case: https://go.dev/doc/effective_go#defer
2022-10-18 20:21:56 +08:00
Guoqiang Ding
e3feea6eeb
docs(config/etcd): fix the missing step of Load (#2450)
Co-authored-by: Guoqiang Ding <guoqiang10@staff.sina.com.cn>
2022-10-18 20:05:37 +08:00
jesse.tang
b5cd1c693d
fix: contrib/registry/eureka/client.go serveice -> serivce (#2440) 2022-10-12 19:21:39 +08:00
jesse.tang
c5e86ca36d
style: kratos interface check (#2441)
* style: kratos interface check

* fix: kratos interface check
2022-10-12 19:21:03 +08:00
包子
8743f3e50c
deps: upgrade kratos version v2.5.1 (#2431)
* deps: upgrade kratos version v2.5.1

* fix goimport
2022-10-10 13:50:04 +08:00
jesse.tang
69fcd50c0a
feat: golangci add goimports local-prefixes (#2413)
* feat: golangci goimports local-prefixes

* fix lint

* fix lint
2022-10-10 11:27:01 +08:00
jesse.tang
9f65c1a03d
cleanup: remove redundancy type conversion and golangci add unconvert (#2409)
* cleanup: remove redundancy type conversion

* golangci add unconvert check
2022-10-10 11:19:39 +08:00
180909
9301bfa407
chore(log): let log toString same (#2414) 2022-10-09 16:33:20 +08:00
jesse.tang
0ecc2b422f
style: modify declaring empty slices (#2378)
* fix: modify declaring empty slices

declare an empty slice to var s []int replace s :=[]int{}, https://github.com/golang/go/wiki/CodeReviewComments#declaring-empty-slices

* fix lint
2022-09-27 23:14:29 +08:00
180909
b10e067fe9
test(log): add toString unit test (#2373)
* test(log): add toString unit test

* fix lint

* annotation

* fix build&test
2022-09-27 14:23:12 +08:00
jesse.tang
0e698b248a
cleanup: remove fmt and errors new err (#2377)
* cleanup: remove fmt and errors new err

* fix lint

* fix style

* modify global variable
2022-09-27 14:12:09 +08:00
180909
2936b5ba80
cleanup: remove the repeated import (#2393) 2022-09-27 14:08:42 +08:00
jesse.tang
4d95050747
fix: fmt import (#2379) 2022-09-27 14:08:08 +08:00
swliao425
8d067a32db
fix(aliyun log): 'format bool' is missing in 'toString' function (#2406) 2022-09-27 12:19:21 +08:00
包子
7866ff75fd
fix(registry/consul): use health check option to control custom checks (#2391) 2022-09-21 15:21:56 +08:00
jesse.tang
9737a3c5e4
fix: typo and grammatical errors (#2368)
* fix: grammar

* fix: grammar

* fix overrode

* translate to English

* translate to English
2022-09-19 10:39:54 +08:00
Jiepeng Cao
7f2666be9f
typo for log (#2374) 2022-09-15 21:31:13 +08:00
jesse.tang
b0b49be383
feat: remote assert libraries (#2372) 2022-09-15 20:13:08 +08:00
jesse.tang
0ed01efdfd
revise err logic or null pointer exception (#2376) 2022-09-15 20:10:39 +08:00
jesse.tang
f2a33929d0
fix: modify interface check way (#2375)
* fix: modify interface check way

* fix
2022-09-14 22:05:48 +08:00
包子
ae505063fe
fix(apollo): config return nil when watch err 2022-09-14 19:44:04 +08:00
GongGuoWei
cb69bf3714
test(config): add etcd config method test (#2349)
Added test cases for the about etcd method
- WithPath(path string)
- WithPrefix(prefix bool)

Update #2135
2022-09-06 13:46:14 +08:00
黄仲辉
617ee1aa39
fix(lint): Using deprecated package io/ioutil cause lint interrupted, change to os or io package. (#2353)
Co-authored-by: 黄仲辉 <610195979@qq.com>
2022-09-02 15:08:26 +08:00
dependabot[bot]
e820b392e9
build(deps): bump github.com/hashicorp/consul/api (#2279)
Bumps [github.com/hashicorp/consul/api](https://github.com/hashicorp/consul) from 1.13.1 to 1.14.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/v1.13.1...api/v1.14.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-09-01 21:14:50 +08:00
dependabot[bot]
7a336ca353
build(deps): bump google.golang.org/protobuf in /contrib/opensergo (#2248)
Bumps [google.golang.org/protobuf](https://github.com/protocolbuffers/protobuf-go) from 1.28.0 to 1.28.1.
- [Release notes](https://github.com/protocolbuffers/protobuf-go/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf-go/blob/master/release.bash)
- [Commits](https://github.com/protocolbuffers/protobuf-go/compare/v1.28.0...v1.28.1)

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  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-09-01 16:10:55 +08:00
dependabot[bot]
503efd3825
build(deps): bump go.uber.org/zap in /contrib/log/zap (#2326)
Bumps [go.uber.org/zap](https://github.com/uber-go/zap) from 1.22.0 to 1.23.0.
- [Release notes](https://github.com/uber-go/zap/releases)
- [Changelog](https://github.com/uber-go/zap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/uber-go/zap/compare/v1.22.0...v1.23.0)

---
updated-dependencies:
- dependency-name: go.uber.org/zap
  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-09-01 16:09:21 +08:00
包子
b354f185c0
feat(registry): consul support user custom checks (#2317) 2022-08-26 10:54:02 +08:00
jesse.tang
73a8323ee7
fix: slice/map make init cap (#2300) 2022-08-24 18:19:07 +08:00
dependabot[bot]
b1bb0bd18f
build(deps): bump github.com/hashicorp/consul/api (#2278)
Bumps [github.com/hashicorp/consul/api](https://github.com/hashicorp/consul) from 1.13.1 to 1.14.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/v1.13.1...api/v1.14.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-08-20 14:51:58 +08:00
dependabot[bot]
869fcd57c8
build(deps): bump go.uber.org/zap in /contrib/log/zap (#2280)
Bumps [go.uber.org/zap](https://github.com/uber-go/zap) from 1.21.0 to 1.22.0.
- [Release notes](https://github.com/uber-go/zap/releases)
- [Changelog](https://github.com/uber-go/zap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/uber-go/zap/compare/v1.21.0...v1.22.0)

---
updated-dependencies:
- dependency-name: go.uber.org/zap
  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-08-20 14:51:20 +08:00
包子
563ad0d34a
deps: upgreade kratos version to v2.5.0 (#2286) 2022-08-17 14:23:48 +08:00
包子
3f31b4d734
bc: apollo unable to get and watch to the properties file (#2269) 2022-08-17 13:04:56 +08:00
Germiniku
de2f93fbec
refactor(log) aliyun use the same interface name (#2251)
* feat(log): add tencent cls

fix

update

* refactor(log) use the same interface name

* fix(log) tencent toString
2022-08-16 21:22:35 +08:00
kkf1
d11c6892b4
feat: add servicecomb registry (#2114)
* add servicecomb registry
2022-08-15 22:09:48 +08:00
包子
84235462b7
feat(registry): consul get service support remote (#2275)
* feat(registry): consul get service support remote acces

* fix lint
2022-08-13 13:00:17 +08:00
Kagaya
e4d73db523
fix lint error (#2266) 2022-08-10 17:04:07 +08:00
dependabot[bot]
0aa9719e3a
build(deps): bump google.golang.org/protobuf in /contrib/log/aliyun (#2249)
Bumps [google.golang.org/protobuf](https://github.com/protocolbuffers/protobuf-go) from 1.28.0 to 1.28.1.
- [Release notes](https://github.com/protocolbuffers/protobuf-go/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf-go/blob/master/release.bash)
- [Commits](https://github.com/protocolbuffers/protobuf-go/compare/v1.28.0...v1.28.1)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-09 21:07:06 +08:00
Germiniku
fea863e783
feat(log): add tencent cls (#2244) 2022-08-01 23:55:03 +08:00
林晓炜
1f3ac4ea22
fix(registry): contrib/registry/zookeeper ephemeral nodes handling after restart (#2245) 2022-08-01 23:42:45 +08:00
dependabot[bot]
aae0339692
build(deps): bump github.com/prometheus/common (#2210)
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.36.0 to 0.37.0.
- [Release notes](https://github.com/prometheus/common/releases)
- [Commits](https://github.com/prometheus/common/compare/v0.36.0...v0.37.0)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-01 10:03:00 +08:00
包子
eff368621f
deps: upgrade kratos version to v2.4.1 (#2242) 2022-07-28 19:43:50 +08:00
dependabot[bot]
86eba94646
build(deps): bump k8s.io/client-go in /contrib/config/kubernetes (#2217)
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.24.2 to 0.24.3.
- [Release notes](https://github.com/kubernetes/client-go/releases)
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.24.2...v0.24.3)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-27 13:07:15 +08:00