keyedlock

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL