Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrLocked = errors.New("fslock: directory is locked")
ErrLocked is signaled when someone tries to lock an already locked file.
Functions ¶
This section is empty.
Types ¶
type Locker ¶
type Locker struct {
// contains filtered or unexported fields
}
Locker is a simple utility meant to create lock files. This is to prevent multiple processes from managing the same working directory by purpose or accident. NOTE: Windows is not supported.
Click to show internal directories.
Click to hide internal directories.