Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrAcquireLock = errors.New("could not acquire lock")
)
Functions ¶
This section is empty.
Types ¶
type FileLocker ¶
type FileLocker struct {
// contains filtered or unexported fields
}
FileLocker is the structure that wraps exclusive file locking functionality.
func NewLocker ¶
func NewLocker(filepath string) (*FileLocker, error)
NewLocker creates new locker instance for a file path.
Click to show internal directories.
Click to hide internal directories.