Versions in this module Expand all Collapse all v0 v0.1.0 Jun 11, 2019 Changes in this version + var ErrLostLock = errors.New("lost lock") + type Lock struct + func Acquire(client *redis.Client, key string, options *Options) (*Lock, error) + func (l *Lock) Abandoned() <-chan struct{} + func (l *Lock) Release() error + func (l *Lock) Status() (bool, error) + type Options struct + LockTimeout time.Duration + RefreshInterval time.Duration + RetryCount int + RetryDelay time.Duration