Documentation
¶
Index ¶
Constants ¶
View Source
const ( OpSet = byte(0) OpDelete = byte(1) OpSetPointer = byte(2) )
Variables ¶
View Source
var ErrCorrupt = errors.New("wal: corrupt record")
View Source
var ErrRecordTooLarge = errors.New("wal: record too large")
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
// MaxSegmentSize bounds the total WAL segment payload size (bytes).
// 0 uses the default limit; values < 0 disable the cap.
MaxSegmentSize int64
}
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) AppendBatch ¶
AppendBatch writes multiple records as a single atomic segment.
Click to show internal directories.
Click to hide internal directories.