Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrLockTimeout = errors.New("lock operation timed out")
ErrLockTimeout is returned when a lock operation times out
Functions ¶
This section is empty.
Types ¶
type Locker ¶
type Locker struct {
// contains filtered or unexported fields
}
Locker is the generic interface for distributed business level locks.
func NewLocker ¶
func NewLocker(cfg *LockerConfig) (*Locker, error)
type LockerConfig ¶
func (*LockerConfig) Validate ¶
func (c *LockerConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.