Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ErrIsLocked is returned when a file is already locked ErrIsLocked = errors.Error("file is already locked") // ErrTimeout is returned when a timeout has been exceeded while acquiring a lock ErrTimeout = errors.Error("timeout exceeded when acquiring lock") )
Variables ¶
This section is empty.
Functions ¶
func LockWithContext ¶
LockWithContext will acquire a *nix file lock on the provided file with context.Context
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.