Versions in this module Expand all Collapse all v1 v1.0.1 May 10, 2021 v1.0.0 May 9, 2021 Changes in this version + var ErrLockTimeout = errors.New("lock timeout") + type AcquireOption func(o *AcquireOptions) + func TTL(t time.Duration) AcquireOption + func Wait(t time.Duration) AcquireOption + type AcquireOptions struct + TTL time.Duration + Wait time.Duration + type Lock interface + Acquire func(id string, opts ...AcquireOption) error + Release func(id string) error + type Option func(o *Options) + func Nodes(a ...string) Option + func Prefix(p string) Option + type Options struct + Nodes []string + Prefix string Incompatible versions in this module v2.3.0+incompatible May 9, 2021