package
0.0.0-20230623171840-436d2007a9fd
Repository: https://github.com/dropbox/godropbox.git
Documentation: pkg.go.dev

# Functions

New creates a new LockStore given the options.
NewLockingMap returns a new instance of LockingMap.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

LockingMapOptions for setting options on the map.
LockStoreOptions provides options for creating the LockStore.

# Interfaces

LockingMap is an easy to use wrapper around a map/lockstore that lets you easily handle using a map in a concurrent way.
LockStore provides a way to synchronize using locks based on keys This is mainly use to provide different levels of granularity to avoid lock contention.

# Type aliases

Specifies locking granularity..
LockingMapAddFunc is defined by the user and takes as input the key that is is being added and returns a value and possible error.
LockingMapCheckFunc is given a key and value interface{} and is expected to return a boolean about whether or not the given value is still valid.