package
1.0.2
Repository: https://github.com/ravior/gserver.git
Documentation: pkg.go.dev

# Functions

Lock locks the `key` with writing lock.
LockFunc locks the `key` with writing lock and callback function `f`.
New creates and returns a new memory locker.
Remove removes mutex with given `key`.
RLock locks the `key` with reading lock.
RLockFunc locks the `key` with reading lock and callback function `f`.
RUnlock unlocks the reading lock of the `key`.
TryLock tries locking the `key` with writing lock, it returns true if success, or if there's a write/reading lock the `key`, it returns false.
TryLockFunc locks the `key` with writing lock and callback function `f`.
TryRLock tries locking the `key` with reading lock.
TryRLockFunc locks the `key` with reading lock and callback function `f`.
Unlock unlocks the writing lock of the `key`.

# Structs

Locker is a memory based locker.