Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultTimeout is the default timeout for acquiring a file lock. DefaultTimeout = 5 * time.Second // FileLockPollInterval is how often to retry acquiring the file lock. FileLockPollInterval = 50 * time.Millisecond )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Locker ¶
type Locker struct {
// contains filtered or unexported fields
}
Locker provides file-based locking with timeout.
Click to show internal directories.
Click to hide internal directories.