Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Locker ¶
type Locker struct {
// contains filtered or unexported fields
}
Locker ...
type Options ¶
type Options struct { KeyPrefix string // The maximum duration to lock a key, Default: 10s LockTimeout time.Duration // The maximum duration to wait to get the lock, Default: 0s, do not wait WaitTimeout time.Duration // The maximum wait retry time to get the lock again, Default: 100ms WaitRetry time.Duration }
Options ...
Click to show internal directories.
Click to hide internal directories.