Documentation ¶
Overview ¶
Package locking contains file- and network (port) locking primitives
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AlreadyLocked = errors.New("AlreadyLocked")
AlreadyLocked is an error
Functions ¶
This section is empty.
Types ¶
type DirLock ¶
type DirLock string
DirLock is a directory lock
func NewDirLock ¶
NewDirLock create new directory-based lock (creates a subdir, if not exists, but unlocked first) WARNING: no automatic Unlock on exit/panic!
type FLock ¶
FLock is a file-based lock
type FLocks ¶
type FLocks []*FLock
FLocks is an array of FLocks, Unlockable at once
Click to show internal directories.
Click to hide internal directories.