package
1.2.2
Repository: https://github.com/johnsiilver/golib.git
Documentation: pkg.go.dev

# Functions

New constructs a new Locker.
Register registers a Locker for a namespace.
TTL sets the minimum time the lock will be held.

# Variables

No description provided by the author

# Structs

Info provides information about a lock.
Lock provides information and operations for a lock that has been taken out.
LockOptions provides options to various Locker implementations.
RegEntry describes a Locker entry in the internal registry.
UnlockOptions provides options to various Locker implementations.

# Interfaces

Handler provides for locking and unlocking resources.
Infoer allows getting information about a lock.
Locker provides access to all functions for interfacing with locks.
Reader allows reading data held in a lock, if the lock can hold data.
Watcher watches the content held in a lock and returns the content whenever it changes.

# Type aliases

Cancel cancels a background function.
LockOption provides an optional argument for locking a resource.
Releaser unlocks a resource.
UnlockOption provides an optional argument for unlocking a resource.