Documentation ¶
Overview ¶
Package wal provides a write-ahead log.
Index ¶
Constants ¶
View Source
const (
OperationInsert walOperation = iota
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileWAL ¶
type FileWAL struct {
// contains filtered or unexported fields
}
A FileWAL is a write-ahead log represented by a file on disk.
func NewFileWAL ¶
NewFileWAL returns a new on-disk write-ahead log with the given file name.
func OpenFileWAL ¶
OpenFileWAL opens a write-ahead long stored at filename.
func (*FileWAL) Append ¶
Append writes the WALentry to the write-ahead log. It returns the number of bytes written and an error.
Click to show internal directories.
Click to hide internal directories.