Documentation ¶ Index ¶ type Locker func NewLocker() *Locker func (locker *Locker) ReadLock(ctx context.Context, key any) error func (locker *Locker) ReadUnlock(key any) func (locker *Locker) WriteLock(ctx context.Context, key any) error func (locker *Locker) WriteUnlock(key any) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Locker ¶ type Locker struct { // contains filtered or unexported fields } func NewLocker ¶ func NewLocker() *Locker func (*Locker) ReadLock ¶ func (locker *Locker) ReadLock(ctx context.Context, key any) error func (*Locker) ReadUnlock ¶ func (locker *Locker) ReadUnlock(key any) func (*Locker) WriteLock ¶ func (locker *Locker) WriteLock(ctx context.Context, key any) error func (*Locker) WriteUnlock ¶ func (locker *Locker) WriteUnlock(key any) Source Files ¶ View all Source files locker.go Click to show internal directories. Click to hide internal directories.