Documentation ¶ Index ¶ type KeyedLock func New() *KeyedLock func (k *KeyedLock) Downgrade(key string) func (k *KeyedLock) Lock(ctx context.Context, key string) error func (k *KeyedLock) RLock(ctx context.Context, key string) error func (k *KeyedLock) RUnlock(key string) func (k *KeyedLock) TryLock(key string) bool func (k *KeyedLock) Unlock(key string) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type KeyedLock ¶ type KeyedLock struct { // contains filtered or unexported fields } func New ¶ func New() *KeyedLock func (*KeyedLock) Downgrade ¶ func (k *KeyedLock) Downgrade(key string) func (*KeyedLock) Lock ¶ func (k *KeyedLock) Lock(ctx context.Context, key string) error func (*KeyedLock) RLock ¶ func (k *KeyedLock) RLock(ctx context.Context, key string) error func (*KeyedLock) RUnlock ¶ func (k *KeyedLock) RUnlock(key string) func (*KeyedLock) TryLock ¶ func (k *KeyedLock) TryLock(key string) bool func (*KeyedLock) Unlock ¶ func (k *KeyedLock) Unlock(key string) Source Files ¶ View all Source files keyedlock.go Click to show internal directories. Click to hide internal directories.