Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Error ¶
type Error struct { Err error // Err underlying error (if there was one) // contains filtered or unexported fields }
Error for errors generated in the flock package
type Options ¶
type Options struct { Path string // Path to file to use for lock RetryInterval time.Duration // RetryInterval how often to retry lock attempts Timeout time.Duration // Timeout how long to wait for the lock before giving up }
Options holds necessary attributes for a file lock with a timeout.
Click to show internal directories.
Click to hide internal directories.