# Functions
MethodForLock is used to specify the context in which the lock was obtained.
NewCoolOffLocker creates a simple locker that will prevent a lock from being obtained if a previous attempt (successful or not) was made within the specified expiration period.
No description provided by the author
NewNestedLocker creates a locker that protects the inner locker with an outer locker, so that no unnecessary calls are made to the inner locker when attempting to obtain an unavailable lock.
NewSessionLocker creates a new locker with the provided session constructor.
NewV3Locker creates a locker backed by etcd V3.
PatternForLock is used to specify the pattern that was used to build the lock key for metric tracking purposes.
WithMetrics decorates a locker with metrics.
# Variables
ErrLockedLocally indicates that a local goroutine holds the lock and no attempt will be made to obtain the lock via etcd.
ErrNilMutex indicates that the lock has a nil mutex.
# Structs
FuncMockLock instances are driven by functions that are provided.
FuncMockLocker instances are driven by functions that are provided.
MockLocker implements the RuleLocker interface.
# Type aliases
No description provided by the author
Option instances are used to provide optional arguments to the RuleLock.Lock method.