Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrByteRangeAcquired = errors.New("file byte-range lock is already acquired")
ErrByteRangeAcquired corresponds to the error returned when a file byte-range is already acquired.
View Source
var ErrLockNotSupported = errors.New("file lock is not supported")
ErrLockNotSupported corresponds to the error returned when file locking is not supported.
Functions ¶
Types ¶
type ByteRange ¶
type ByteRange struct {
// contains filtered or unexported fields
}
ByteRange defines a file byte-range lock.
func NewByteRange ¶
NewByteRange returns a file byte-range lock.
Click to show internal directories.
Click to hide internal directories.