Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lock ¶
type Lock struct {
// contains filtered or unexported fields
}
type LockManager ¶
type LockManager struct {
// contains filtered or unexported fields
}
func NewLockManager ¶
func (*LockManager) Close ¶
func (lm *LockManager) Close()
Close will close the lock manager, _and all locked locks created by the lock manager will become unlocked_.
func (*LockManager) Create ¶
func (lm *LockManager) Create(_ context.Context, name string) (lock.DistributedLock, error)
Create implements lock.DistributedLock.
Click to show internal directories.
Click to hide internal directories.