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
2 years ago
jesse.tang
9f65c1a03d
cleanup: remove redundancy type conversion and golangci add unconvert ( #2409 )
...
* cleanup: remove redundancy type conversion
* golangci add unconvert check
2 years ago
Gaffey
faa3adc300
style(config/value): optimize atomicValue format string ( #2401 )
2 years ago
jesse.tang
4d95050747
fix: fmt import ( #2379 )
2 years ago
jesse.tang
0ed01efdfd
revise err logic or null pointer exception ( #2376 )
2 years ago
icylight
60b00c8ade
fix(config/env): prefixs typo ( #2321 )
3 years ago
jesse.tang
73a8323ee7
fix: slice/map make init cap ( #2300 )
3 years ago
shengzhou
ede5f889d4
test: increase endpoint,env, options and reader tests coverage. ( #2192 )
...
* test(config/file): add format test (#2147 )
* test(internal/endpoint): increase endpoint tests coverage.(#2147 )
* test(config/env): increase env tests coverage.(#2147 )
* test(config/options): increase options tests coverage.(#2147 )
* test(config/reader): increase reader tests coverage.(#2147 )
3 years ago
shengzhou
dec323113f
test(config/file): add format test ( #2147 ) ( #2168 )
3 years ago
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
3 years ago
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
3 years ago
Tony Chen
dccee86141
log: remove component logger to use global logger ( #2061 )
...
* remove component logger to user global logger
3 years ago
包子
6e685a474b
fix: config log
3 years ago
包子
c01fd054ec
feat: add config log ( #2060 )
3 years ago
songzhibin97
ef6fb480c6
fix:#2006 config.atomicValue Other basic types are supported ( #2007 )
...
* Update value.go
* fix:supplement
3 years ago
songzhibin97
8a8626331d
Update file.go ( #2005 )
3 years ago
JinChang
912abb4848
Added ability to configure protojson ( #1993 )
3 years ago
Cluas
d4c0c57681
feat(log): log load config only when Debug level ( #1899 )
3 years ago
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.
3 years ago
haiyux
00c05e82a3
test:remove testify go mod ( #1766 )
...
* test:remove testify go mod
* tidy go mdo
* fix test
3 years ago
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
3 years ago
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>
3 years ago
Windfarer
a8692e7dde
feat(contrib/config): use key file extension as format & config load log ( #1619 )
...
* add format
3 years ago
longxboy
69fc5cca87
feat: add config slice map support ( #1538 )
...
feat: add config slice map support
3 years ago
Windfarer
f3e75bffca
feat: update go version to 1.16 ( #1536 )
3 years ago
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
3 years ago
letian
53563ab498
fix error in file test ( #1483 )
3 years ago
seasrain
558070f4d9
fix:edit the config's readmes ( #1462 )
4 years ago
Windfarer
0ec3ff0b46
refactor: move plugins to contrib dir ( #1399 )
...
* move to contrib dir
Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
4 years ago
yuemoxi
a180043076
fix: update config readme ( #1396 )
...
* fix: updare config readme
* add appollo
4 years ago
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
4 years ago
yuemoxi
a1f35ecc05
fix:rename kube to kubernetes ( #1393 )
...
* fix:update config and registry readme
* rename kute to kubernetes
* fix
* fix
4 years ago
包子
112ca9c78a
fix(config/apollo): code style ( #1395 )
4 years ago
yuemoxi
4536b460f1
feat: move kute to kratos ( #1383 )
...
* feat: move kute to kratos
4 years ago
Joe Zou
ee3da3a189
feat: add apollo module for kratos ( #1370 )
...
* add apollo module for kratos
4 years ago
Kagaya
fee1b34973
test(config): add test case for resolver ( #1377 )
4 years ago
包子
925e55a04d
fix(config): replace text with "${}" only ( #1375 )
...
* fix(config): replace text with "${}" only
4 years ago
包子
817c13a80c
fix: code style ( #1342 )
4 years ago
徐胖
3026f9490e
chore(config/env): polish watcher ( #1341 )
...
* chore(config/env): polish watcher
4 years ago
Giovanny Gutiérrez
9a6c03a9e5
fix(config): Support colon as default value in config.yaml ( #1332 )
4 years ago
月墨夕
fdce5f0746
fix:config groutine(watch) leak ( #1327 )
...
* fix:config goroutine(watch) Leak
4 years ago
byteneco
39a36b49e1
append config watchers when watch source ( #1320 )
...
Co-authored-by: sukkids <ehekirahoshi@gmail.com>
4 years ago
Windfarer
6d06721fc8
fix(config): fix data race ( #1316 )
...
* data race
* fix values
* lock
4 years ago
寻寻觅觅的Gopher
6e65616e31
fix(config): clean code ( #1311 )
4 years ago
Yongzheng Lai
b68265c365
fix: using t.TempDir ( #1289 )
4 years ago
徐胖
025ae38acc
fix(config/env): fix env.load() index out of range ( #1252 )
...
* fix(config/env): env.load() may panic
4 years ago
Kagaya
3660a8d65d
fix(env): index out panic when env key is preifix ( #1247 )
4 years ago
Tony Chen
cb7fc2d72a
Revert "replace env underscore to dot ( #1229 )" ( #1235 )
...
This reverts commit 38c9def445
.
4 years ago
longxboy
38c9def445
replace env underscore to dot ( #1229 )
...
* replace env underscore to dot
* Compatible with dot format
4 years ago
徐胖
77d2cfb653
chore(config/env): minor refactor ( #1232 )
...
* chore(config/env): minor refactor
4 years ago