Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lockfile ¶
type Lockfile struct {
// contains filtered or unexported fields
}
Lockfile represents an acquired lockfile.
func Acquire ¶
Acquire creates the given file path if it doesn't exist and obtains an exclusive lock on it. An error is returned if the lock has been obtained by another process.
func CreateAndAcquire ¶
CreateAndAcquire creates any non-existing directories needed to create the lock file, then acquires a lock on it
Click to show internal directories.
Click to hide internal directories.