Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrTimeout = errors.New("timeout")
)
Functions ¶
func UnlockFile ¶
func UnlockFile(locker *FileLocker) error
UnlockFile releases an advisory lock on a file descriptor.
Types ¶
type FileLocker ¶
type FileLocker struct { FilePath string LockFilePath string // contains filtered or unexported fields }
func NewFileLocker ¶
func NewFileLocker(path string) *FileLocker
Click to show internal directories.
Click to hide internal directories.