# README
锁服务
非分布式锁
分布式锁
redis
docker run --name redis -p 6379:6379 -itd redis
etcd
# Functions
No description provided by the author
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
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
No description provided by the author
NoRetry acquire the lock only once.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
ErrLockNotHeld is returned when trying to release an inactive lock.
ErrNotObtained is returned when a lock cannot be obtained.
# Structs
No description provided by the author
No description provided by the author
Options describe the options for the lock.
Lock represents an obtained, distributed lock.
No description provided by the author
# Interfaces
No description provided by the author
No description provided by the author
RetryStrategy allows to customise the lock retry strategy.
# Type aliases
No description provided by the author