package
1.2.0
Repository: https://github.com/gitforxuyang/eva.git
Documentation: pkg.go.dev

# Functions

ExponentialBackoff strategy is an optimization strategy with a retry time of 2**n milliseconds (n means number of times).
No description provided by the author
LimitRetry limits the number of retries to max attempts.
LinearBackoff allows retries regularly with customized intervals.
No description provided by the author
NoRetry acquire the lock only once.

# Variables

ErrLockNotHeld is returned when trying to release an inactive lock.
ErrNotObtained is returned when a lock cannot be obtained.

# Structs

Lock represents an obtained, distributed lock.
No description provided by the author
Options describe the options for the lock.

# Interfaces

No description provided by the author
RetryStrategy allows to customise the lock retry strategy.