Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zhudyos/duic-go-client
配置中心 duic-go-client
https://github.com/zhudyos/duic-go-client
Last synced: 25 days ago
JSON representation
配置中心 duic-go-client
- Host: GitHub
- URL: https://github.com/zhudyos/duic-go-client
- Owner: zhudyos
- License: apache-2.0
- Created: 2018-05-07T07:13:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-29T08:18:25.000Z (over 6 years ago)
- Last Synced: 2024-06-20T01:52:09.490Z (7 months ago)
- Language: Go
- Homepage: https://github.com/zhudyos/duic
- Size: 8.79 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
Awesome Lists containing this project
README
= duic 配置中心 go 语言客户端
== Features
* 热加载配置
* 实时更新配置== Get Started
----
go get -u github.com/zhudyos/duic-go-client
----初始化配置信息
----
duic.BaseUri = "https://duic.zhudy.io/api/v1"
duic.Name = "unit-test"
duic.Profiles = "test"
duic.Init()
----获取配置 API
----
duic.Bool("key") // 获取一个 bool 配置
duic.Int("key") // 获取一个 int 配置
duic.Float64("key") // 获取一个 float64 配置
duic.String("key") // 获取一个 string 配置
duic.Array("key") // 获取一个数组配置
duic.Object("key") // 获取一个对象配置
----== See also
* https://github.com/zhudyos/duic[duic 配置中心]