Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyLock ¶
type KeyLock struct {
// contains filtered or unexported fields
}
func NewKeyLock ¶
func NewKeyLock() *KeyLock
func (*KeyLock) Lock ¶
func (l *KeyLock) Lock(key string) UnlockFunc
func (*KeyLock) LockMain ¶
func (l *KeyLock) LockMain() UnlockFunc
func (*KeyLock) RLock ¶
func (l *KeyLock) RLock(key string) UnlockFunc
func (*KeyLock) RLockMain ¶
func (l *KeyLock) RLockMain() UnlockFunc
type UnlockFunc ¶
type UnlockFunc func()
Click to show internal directories.
Click to hide internal directories.