Versions in this module Expand all Collapse all v0 v0.0.5 Nov 11, 2015 v0.0.4 Aug 26, 2015 Changes in this version + func NewEtcdLeaseManager(kAPI etcd.KeysAPI, keyPrefix string, reqTimeout time.Duration) *etcdLeaseManager + type Lease interface + Index func() uint64 + MachineID func() string + Release func() error + Renew func(time.Duration) error + TimeRemaining func() time.Duration + Version func() int + type Manager interface + AcquireLease func(name, machID string, ver int, period time.Duration) (Lease, error) + GetLease func(name string) (Lease, error) + StealLease func(name, machID string, ver int, period time.Duration, idx uint64) (Lease, error)