Versions in this module Expand all Collapse all v1 v1.0.0 Jun 17, 2026 Changes in this version + type Etcd struct + func Connect(endpoints []string, prefix string) (*Etcd, error) + func (etcd *Etcd) Dlock(ctx context.Context, key string, cb callback) error + func (etcd *Etcd) DlockWithTimeout(key string, timeout time.Duration, cb callback) error + func (etcd *Etcd) NewMutex(key string) (*Mutex, error) + type Mutex struct + func (m *Mutex) Lock(ctx context.Context) error + func (m *Mutex) Unlock(ctx context.Context) error