Versions in this module Expand all Collapse all v1 v1.4.7 Sep 26, 2024 v1.4.6 Sep 20, 2024 Changes in this version + func InitDefault(endpoints ...string) func() + type EtcdLock struct + Cli *clientv3.Client + func D() *EtcdLock + func NewDistributedLock(c *clientv3.Client) (*EtcdLock, func()) + func (el *EtcdLock) Lock(op string) (func(), error) + func (el *EtcdLock) LockWithTimeout(op string, duration time.Duration) (func(), error) + func (el *EtcdLock) Release()