- 多 namespace 支持
- 容错,本地缓存
- 零依赖
- 实时更新通知
go 1.9 或更新
go get -u github.com/philchia/agollo
agollo.Start()
agollo.StartWithConfFile(name)
events := agollo.WatchUpdate()
changeEvent := <-event
bytes, _ := json.Marshal(changeEvent)
fmt.Println("event:", string(bytes))
agollo.GetStringValue(Key, defaultValue)
agollo.GetStringValueWithNameSapce(namespace, key, defaultValue)
agollo.GetNameSpaceContent(namespace, defaultValue)
agollo.GetAllKeys(namespace)
agollo.SubscribeToNamespaces("newNamespace1", "newNamespace2")
agollo 使用 MIT 许可