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. Call with the file to lock. This function creates .lock file next to it.
func AcquireWriteLock ¶
AcquireWriteLock tries to acquire a shared lock to write from the file and returns a lock object or an error accordingly. Call with the file to lock. This function creates an extra .lock file next to it.
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.