Documentation
¶
Overview ¶
Package fcntllock provides simple whole file lock methods based on fcntl
Lock functions create lock directory if absent
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lock ¶
type Lock struct {
ReadWriteSeekCloser
// contains filtered or unexported fields
}
Lock implement fcntl lock features
func (*Lock) LockContext ¶
LockContext repeat TryLock with retry delay until succeed or context Done
type ReadWriteSeekCloser ¶
type ReadWriteSeekCloser interface {
io.ReadWriteSeeker
io.Closer
}
Click to show internal directories.
Click to hide internal directories.