Versions in this module Expand all Collapse all v1 v1.0.0 Dec 18, 2020 Changes in this version + const CONFIG_PREFIX + const SERVICE_PREFIX + func DestroyService(serviceName, HostName string) error + func GetModVal(modVal uint64) uint64 + func GetServerWithName(serviceName string) string + func InitEtcd(rootPrefix string, endpoints, key, cert, ca string, events ...WatchEvent) + func KvGet(key string) string + func KvPut(key string, val string) error + func NewEtcdClient() *etcdClient + func RegisterServerName(serviceName, HostName string, serviceAddr string) error + type WatchEvent func(rootPrefix string, event mvccpb.Event_EventType, key, val string) + func ConfigEvent() WatchEvent + func ServiceEvent() WatchEvent