package
0.0.0-20240516065436-a2bc238b4b59
Repository: https://github.com/tools-go/go-utils.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

New will create a new Locker.
WithTTL configs the Locker with a timeout value, if the Locker cant get the lock when the ttl expiration, then Lock will fail.

# Interfaces

Locker is an interface that have a trylock method.

# Type aliases

Options config Locker.
Unlocker is a func that can unlock the lock from the outside pkg.