Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lock ¶
type Lock interface { // TryLock Attempts to acquire lock within given amount of time. If lock is not free by // that time, returns false. Otherwise, returns true TryLock(timeout time.Duration) (bool, error) Unlock() }
Lock all operations with lock
type LockFactory ¶
LockFactory creates lock and returns it (without locking)
Click to show internal directories.
Click to hide internal directories.