Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Action ¶
type Action struct { Type ActionType LSN uint64 Key []byte Value []byte // optional Expire uint32 // optional. 0 is default and means no expire time }
type ActionType ¶
type ActionType byte
const ( ActionTypeUnknown ActionType = iota ActionTypeSet ActionTypeDel )
type W ¶
type W struct {
// contains filtered or unexported fields
}
func (*W) Checkpoint ¶
Checkpoint for now checkpointing WAL means it's safe to delete all entries from the file Checkpoint mush be called only after the segment's file is persisted to the disk fully Otherwise some data changes can be lost in case of software or hardware faults
Click to show internal directories.
Click to hide internal directories.