# Packages
Package lockermock is a generated GoMock package.
# Functions
NewEtcdLeaseManager returns a default manager that implements the EtcdLeaseManager interface.
NewEtcdLocker return an implemtation of Locker based on the ETCD database.
NewMockEtcdLeaseManager creates a new mock instance.
# Variables
ErrCallbackNotFound is launched when a user tries to delete a callback that does not exist.
ErrGetLeaseTimeout is launched when a user calls GetLease and we fail to provide one in time.
ErrInvalidEtcdState is an error returned by IsMaster when the key supposed to contain the lock does not exist.
# Structs
MockEtcdLeaseManager is a mock of EtcdLeaseManager interface.
MockEtcdLeaseManagerMockRecorder is the mock recorder for MockEtcdLeaseManager.
# Interfaces
EtcdLeaseManager let you get the current server lease for the server.
Locker is a structure that let distribute locks accross the entire networks.
# Type aliases
LeaseChangedCallback is a callback called by the lease manager when the leaseID has changed so that all managers could try to regenerate their keys.