package
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: Oct 27, 2021
License: BSD-3-Clause
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Lock struct {
Identifier string `json:"identifier"`
Locked bool `json:"is_locked"`
Expiry time.Duration `json:"expiry"`
}
Lock provides a nice wrapper for a generic lock type
This can be passed to any distributed locking service
NewLock:
Provides a default wrapper for a lock struct.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.