Versions in this module Expand all Collapse all v1 v1.0.0 May 27, 2024 Changes in this version + type Etcd struct + LeaseID clientv3.LeaseID + func NewEtcd(addr string) (*Etcd, error) + func (e *Etcd) Close() + func (e *Etcd) GetPrefix(prefix string) (ret []string, err error) + func (e *Etcd) NewWatcher() clientv3.Watcher + func (e *Etcd) RegistAndKeepAlive(k, value string) error + func (e *Etcd) WatchPrefixAndBlock(prefix string, closeCh chan struct{}, fn func())