etcd: Small cleanup of the package

Split things into multiple files, and fix up some doc formatting.
This commit is contained in:
James Shubin
2017-06-03 00:34:58 -04:00
parent 9941a97e37
commit d9601471df
4 changed files with 632 additions and 574 deletions

View File

@@ -52,7 +52,7 @@ func WatchStr(obj *EmbdEtcd, key string) chan error {
return ch
}
// GetStr collects the string which matches a gloabl namespace in etcd.
// GetStr collects the string which matches a global namespace in etcd.
func GetStr(obj *EmbdEtcd, key string) (string, error) {
// new key structure is /$NS/strings/$key = $data
path := fmt.Sprintf("/%s/strings/%s", NS, key)