Versions in this module Expand all Collapse all v1 v1.0.0 Jan 5, 2022 Changes in this version + func NewEtcd(c *Conf) *clientv3.Client + type Conf struct + Addr []string + DialTimeout int + type EtcdLock struct + func NewEtcdLock(conn *clientv3.Client, key string, timeout int64) *EtcdLock + func (lock *EtcdLock) GetLockKey() string + func (lock *EtcdLock) Lock() error + func (lock *EtcdLock) TryLock() error + func (lock *EtcdLock) UnLock() error