Documentation ¶
Index ¶
- Variables
- type MultiLock
- func (ml *MultiLock) Add(key string) error
- func (ml *MultiLock) Count() int
- func (ml *MultiLock) List() map[string]bool
- func (ml *MultiLock) Lock(key string) error
- func (ml *MultiLock) Locked(key string) bool
- func (ml *MultiLock) Remove(key string) error
- func (ml *MultiLock) Unlock(key string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrLockAlreadyExist = xerrors.Errorf("lock already exist") ErrLockNotExist = xerrors.Errorf("lock not exist") )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.