Versions in this module Expand all Collapse all v0 v0.1.1 Mar 17, 2023 v0.1.0 Oct 4, 2021 Changes in this version + func WithAcquire(locker Locker, lockName string, opts AcquireOptions, ...) (resErr error) + type AcquireOptions struct + NonBlocking bool + OnLostLeaseFunc func(lock LockHandle) error + OnWaitFunc func(lockName string, doWait func() error) error + Shared bool + Timeout time.Duration + type LockHandle struct + LockName string + UUID string + type Locker interface + Acquire func(lockName string, opts AcquireOptions) (bool, LockHandle, error) + Release func(lock LockHandle) error