package
module
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Jul 2, 2025
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 8
Opens a new window with list of known importers.
Documentation
¶
type Meta struct {
At time.Time `json:"at"`
PID int `json:"pid"`
Intent string `json:"intent"`
SessionID string `json:"session_id"`
}
T wraps flock and dumps JSON data in the lock file
hinting about what holds the lock.
New allocate a file lock struct from the Locker provider.
Lock acquires an exclusive file lock on the file and writes a JSON
formatted structure hinting who holds the lock and with what
intention.
UnLock releases the file lock acquired by Lock.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.