Documentation ¶
Overview ¶
Package lock provides distributed locking
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcquireOption ¶
type AcquireOption func(o *AcquireOptions)
type Lock ¶
type Lock interface { // Acquire a lock with given id Acquire(id string, opts ...AcquireOption) error // Release the lock with given id Release(id string) error }
Lock is a distributed locking interface
Click to show internal directories.
Click to hide internal directories.