- Multiple namespace support
- Fail tolerant
- Zero dependency
- Realtime change notification
go 1.9 or later
go get -u github.com/philchia/agollo agollo.Start() agollo.StartWithConfFile(name) events := agollo.WatchUpdate()
changeEvent := <-events
bytes, _ := json.Marshal(changeEvent)
fmt.Println("event:", string(bytes)) agollo.GetStringValue(Key, defaultValue)
agollo.GetStringValueWithNameSpace(namespace, key, defaultValue) agollo.GetNameSpaceContent(namespace, defaultValue) agollo.GetAllKeys(namespace) agollo.SubscribeToNamespaces("newNamespace1", "newNamespace2")agollo is released under MIT license