Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcquireReadLock ¶
AcquireReadLock tries to acquire a shared lock to read from the file and returns a lock object or an error accordingly.
func AcquireWriteLock ¶
AcquireWriteLock tries to acquire a shared lock to write from the file and returns a lock object or an error accordingly.
func FlockFile ¶
FlockFile returns the flock filename for a given file name it returns an empty string if the input is empty
func ReleaseLock ¶
ReleaseLock releases a lock from a file that was previously created by AcquireReadLock or AcquireWriteLock.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.