1
0
mirror of https://github.com/go-kratos/kratos.git synced 2026-05-22 10:15:24 +02:00
Commit Graph

56 Commits

Author SHA1 Message Date
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 38c9def445.
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
Kagaya 9280af7165 add readValue (#1161) 2021-07-07 23:16:30 +08:00
Tony Chen 3795eddcf5 fix config decoder (#1142) 2021-07-03 15:30:19 +08:00
Kagaya bba6f16017 feat: add int/int32/Stringer support when get atomicValue (#1130) 2021-06-30 18:07:11 +08:00
Windfarer 4e96e08471 config test (#1063)
* init test

* reader test
2021-06-16 15:28:54 +08:00
Tony Chen e989bb04e3 add yaml encoder (#924) 2021-05-17 21:52:23 +08:00
Tony Chen d78eb3ee4b log: add level printer (#918)
* add level printer

* fix helper args

* fix test

* Update README.md
2021-05-17 16:34:28 +08:00
包子 0e4a057027 modify kratos cmd new project (#907)
* Modifying the kratos cmd new project does not use the go git module, but uses the native git command
2021-05-12 22:33:26 +08:00
Tzz 18ea3a6a47 Fix: marshalJson error, when values contains map[interface{}]interface{} (#883)
Co-authored-by: tzz <tzz.wannamoney@qq.com>
2021-04-29 14:57:13 +08:00
包子 b8d5d709e9 middleware/logging add traceid to the printed log,modify the example code and update the dependent version (#877)
* middleware/logging add traceid to the printed log,modify the example code and update the dependent version

* Fix the problem that the configuration could not use arrays
2021-04-28 14:30:51 +08:00
Tony Chen a0fe496a91 fix proto options (#804) 2021-03-29 00:00:48 +08:00
Tony Chen a4409adf16 fix interface defines (#760)
* fix interface defines
2021-03-11 23:26:07 +08:00
Tony Chen 28009889bb encoding/json: remove proto json (#753)
* remove protojson encoding
2021-03-10 22:32:43 +08:00