Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lock ¶
type Lock interface { // Releases releases a previously acquired lock. Release(ctx context.Context) error }
Lock defines distributed lock object.
type Locker ¶
type Locker interface { // AcquireLock acquires lockID distributed lock. AcquireLock(ctx context.Context, lockID string) (Lock, error) // Start initializes locker. Start(ctx context.Context) error // Stop releases all locker underlying resources. Stop(ctx context.Context) error }
Locker defines distributed locking interface.
Click to show internal directories.
Click to hide internal directories.