Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrHashCheck = errors.New("hash check failed")
View Source
var ErrWriteAfterEnd = errors.New("writing after end of file")
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
A File used as a persistent data store. This attempts to guard against some of the pitfalls in reliably writing to a disk.
type Tx ¶
type Tx struct {
// contains filtered or unexported fields
}
Tx represents a transaction of changes applied to a file. A given file may only have one transaction open at any given time.
func (*Tx) Commit ¶
Commit writes all of the staged changes into the file in such a way that if the process is interrupted, the file can be restored to a known-good state.
Click to show internal directories.
Click to hide internal directories.