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
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
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
Windfarer
a8692e7dde
feat(contrib/config): use key file extension as format & config load log ( #1619 )
...
* add format
3 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
月墨夕
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
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
4 years ago
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
4 years ago
Tony Chen
3795eddcf5
fix config decoder ( #1142 )
4 years ago
Tony Chen
e989bb04e3
add yaml encoder ( #924 )
4 years ago
Tony Chen
d78eb3ee4b
log: add level printer ( #918 )
...
* add level printer
* fix helper args
* fix test
* Update README.md
4 years ago
Tony Chen
a4409adf16
fix interface defines ( #760 )
...
* fix interface defines
4 years ago
Tony Chen
28009889bb
encoding/json: remove proto json ( #753 )
...
* remove protojson encoding
4 years ago
Tony Chen
f86c91849b
fix lint check ( #746 )
4 years ago
Tony Chen
f50b731aa3
Develop ( #708 )
...
* fix proto codec
4 years ago
chenzhihui
3566386a89
init v2
4 years ago