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

68 Commits

Author SHA1 Message Date
Cluas
6fa5700c3c
chore(contrib/config): uniformly canceled by CancelFunc (#2111)
* chore: remove sentinel error for compatibility

* chore: core use lssentinel error

* chore: uniformly canceled by CancelFunc

* chore: remove error
2022-06-17 23:42:32 +08:00
Cluas
4f8d8ef8da
feat(config): add ErrorWatcherStopped and return on watcher.Next() after Watcher.Stop() (#2092)
* feat(config): add ErrorWatcherStopped and return watcher.Next() after watcher.Stop()

* fix: remove unreachable code

* fix: return err when etcd WatcheResponse hold error
2022-06-15 10:53:33 +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
包子
6e685a474b
fix: config log 2022-05-27 10:22:34 +08:00
包子
c01fd054ec
feat: add config log (#2060) 2022-05-27 10:14:15 +08:00
songzhibin97
ef6fb480c6
fix:#2006 config.atomicValue Other basic types are supported (#2007)
* Update value.go

* fix:supplement
2022-05-20 16:55:32 +08:00
songzhibin97
8a8626331d
Update file.go (#2005) 2022-05-20 15:37:28 +08:00
JinChang
912abb4848
Added ability to configure protojson (#1993) 2022-05-20 09:10:13 +08:00
Cluas
d4c0c57681
feat(log): log load config only when Debug level (#1899) 2022-03-29 16:39:31 +08:00
Casper-Mars
5e18a15109
fix(config/config):fix type not match bug (#1837)
If the type of new value not match the old one, value stay the old one.
2022-02-24 23:45: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
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
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
Windfarer
a8692e7dde
feat(contrib/config): use key file extension as format & config load log (#1619)
* add format
2021-11-10 20:10:28 +08:00
longxboy
69fc5cca87
feat: add config slice map support (#1538)
feat: add config slice map support
2021-10-10 14:52:12 +08:00
Windfarer
f3e75bffca
feat: update go version to 1.16 (#1536) 2021-10-08 20:49:56 +08:00
Kagaya
04bc0e63ba
test(middleware/tracing): tracing unit test enhancement (#1484)
* use t.Setenv

* add tracing test

* lint fix

* update go test env to go@1.17

* remove grep

* rename Transport
2021-09-17 04:20:42 +08:00
letian
53563ab498
fix error in file test (#1483) 2021-09-15 21:05:17 +08:00
seasrain
558070f4d9
fix:edit the config's readmes (#1462) 2021-09-11 00:29:46 +08:00
Windfarer
0ec3ff0b46
refactor: move plugins to contrib dir (#1399)
* move to contrib dir


Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
2021-09-01 13:40:14 +08:00
yuemoxi
a180043076
fix: update config readme (#1396)
* fix: updare config readme

* add appollo
2021-08-31 12:07:09 +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
yuemoxi
a1f35ecc05
fix:rename kube to kubernetes (#1393)
* fix:update config and registry readme

* rename kute to kubernetes

* fix

* fix
2021-08-31 10:13:34 +08:00
包子
112ca9c78a
fix(config/apollo): code style (#1395) 2021-08-31 10:12:35 +08:00
yuemoxi
4536b460f1
feat: move kute to kratos (#1383)
* feat: move kute to kratos
2021-08-30 23:23:00 +08:00
Joe Zou
ee3da3a189
feat: add apollo module for kratos (#1370)
* add apollo module for kratos
2021-08-30 19:34:53 +08:00
Kagaya
fee1b34973
test(config): add test case for resolver (#1377) 2021-08-26 14:34:35 +08:00
包子
925e55a04d
fix(config): replace text with "${}" only (#1375)
* fix(config): replace text with "${}" only
2021-08-25 23:52:25 +08:00
包子
817c13a80c
fix: code style (#1342) 2021-08-16 10:53:06 +08:00
徐胖
3026f9490e
chore(config/env): polish watcher (#1341)
* chore(config/env): polish watcher
2021-08-16 10:15:01 +08:00
Giovanny Gutiérrez
9a6c03a9e5
fix(config): Support colon as default value in config.yaml (#1332) 2021-08-14 09:50:26 +08:00
月墨夕
fdce5f0746
fix:config groutine(watch) leak (#1327)
* fix:config goroutine(watch) Leak
2021-08-13 14:09:53 +08:00
byteneco
39a36b49e1
append config watchers when watch source (#1320)
Co-authored-by: sukkids <ehekirahoshi@gmail.com>
2021-08-12 13:39:32 +08:00
Windfarer
6d06721fc8
fix(config): fix data race (#1316)
* data race

* fix values

* lock
2021-08-11 07:59:58 +08:00
寻寻觅觅的Gopher
6e65616e31
fix(config): clean code (#1311) 2021-08-09 16:41:38 +08:00
Yongzheng Lai
b68265c365
fix: using t.TempDir (#1289) 2021-08-02 18:51:31 +08:00
徐胖
025ae38acc
fix(config/env): fix env.load() index out of range (#1252)
* fix(config/env): env.load() may panic
2021-07-26 20:08:48 +08:00
Kagaya
3660a8d65d
fix(env): index out panic when env key is preifix (#1247) 2021-07-25 20:39:03 +08:00
Tony Chen
cb7fc2d72a
Revert "replace env underscore to dot (#1229)" (#1235)
This reverts commit 38c9def445c97b4b06497dee944d030ea1bf3a53.
2021-07-24 00:30:58 +08:00
longxboy
38c9def445
replace env underscore to dot (#1229)
* replace env underscore to dot

* Compatible with dot format
2021-07-23 22:38:18 +08:00
徐胖
77d2cfb653
chore(config/env): minor refactor (#1232)
* chore(config/env): minor refactor
2021-07-23 22:30:28 +08:00
longxboy
e1228d454a
support expand config keys (#1224)
* support expand config keys

* fix bytes in convertMap
2021-07-21 23:09:34 +08:00
Kuiba
0e70bddaa9
fix(config): load env and file source order bug (#1220)
* fix config load env & file order bug

* fix watch issue

* return empty as each update can be resolved
2021-07-21 15:58:43 +08:00
longxboy
dba4b4007d
update WithDecoder comment 2021-07-20 16:09:57 +08:00
Kuiba
44dd641f28
test config struct (#1212) 2021-07-20 09:55:18 +08:00
Kuiba
060cb24535
<test> config/file: add tests for file watcher (#1199)
* add file watcher test
2021-07-16 21:41:49 +08:00
Kagaya
7f394d0d0a
feat(env): add config env source (#1181)
* add config/env

* feat(env): add config env source

* fix: resolve map array & add test case

* remove return stop error

* using gob encoding to deep copy map

* fix ci failed
2021-07-14 13:10:18 +08:00
ymh199478
c2e3a59ebc fix(config): strconv.ParseFloat use correct bitSize 2021-07-13 11:21:39 +08:00
喵喵大人
4780b6e1fd
ci(github action): use golangci-lint to replace the deprecated golint (#1175)
* ci: use golangci-lint to replace the deprecated golint

Co-authored-by: ymh199478 <yumenghan@bilibili.com>
2021-07-12 18:09:38 +08:00
Kagaya
e19730e4b6
feat(config): support Resolver for config variable placeholders (#1135)
* test: add yaml test case for reader

test: init test case for fillTemplate

* add env placeholder resolver

fix ci test fail

* fix ci test fail

* feat(config): add config resolver

* test(config): add test cases

* move defaultDecoder & defaultResolver to options.go
2021-07-11 00:03:43 +08:00