Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrTimeout returns when you couldn't make a TryLock call ErrTimeout = errors.New("Timeout reached") // ErrCancelled returns when you have cancelled the context of req ErrCancelled = errors.New("context cancelled") // Default lock timeout DefaultTimeout time.Duration = time.Second * 8 DefaultTicker time.Duration = time.Second * 7 )
Functions ¶
func NewRedisLocker ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.