Documentation
¶
Index ¶
- type Lock
- type Option
- type Options
- type RedisLock
- func (rl *RedisLock) Check(key string) (bool, error)
- func (rl *RedisLock) Init(opts ...Option)
- func (rl *RedisLock) Lock(key string, ttl ...time.Duration) error
- func (rl *RedisLock) Provide() interface{}
- func (rl *RedisLock) TTL(key string) (int64, error)
- func (rl *RedisLock) Unlock(key string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.