- Multiple namespace support
- Fail tolerant
- Zero dependency
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 is released under MIT lecense