package
0.0.0-20201207183138-34c5bf1cd2ff
Repository: https://github.com/jakewright/home-automation.git
Documentation: pkg.go.dev

# Functions

Lock will forge a lock for the resource and try to acquire the lock.
NewLocalLocksmith returns an initialised LocalLocksmith.

# Variables

DefaultLocksmith is a global instance of Locksmith.

# Structs

LocalLocksmith implements process-scoped locking.
RedisLocksmith is a Locksmith backed by Redis.

# Interfaces

Locker is a lock on a resource that can be locked and unlocked.
Locksmith can forge locks.