Documentation
¶
Overview ¶
Package simplewal is a basic WAL implementation meant to be the first 'real' WAL option for mirbft. More sophisticated WALs with checksums, byte alignments, etc. may be produced in the future, but this is just a simple place to start.
Index ¶
- Variables
- type WAL
- func (w *WAL) Append(event *eventpb.Event, retentionIndex t.WALRetIndex) error
- func (w *WAL) Close() error
- func (w *WAL) IsEmpty() (bool, error)
- func (w *WAL) LoadAll(forEach func(index t.WALRetIndex, p *eventpb.Event)) error
- func (w *WAL) Sync() error
- func (w *WAL) Truncate(retentionIndex t.WALRetIndex) error
- type WALEntry
Constants ¶
This section is empty.
Variables ¶
View Source
var File_simplewal_simplewal_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type WALEntry ¶
type WALEntry struct { RetentionIndex uint64 `protobuf:"varint,1,opt,name=retention_index,json=retentionIndex,proto3" json:"retention_index,omitempty"` Event *eventpb.Event `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` // contains filtered or unexported fields }
func (*WALEntry) Descriptor
deprecated
func (*WALEntry) GetRetentionIndex ¶
func (*WALEntry) ProtoMessage ¶
func (*WALEntry) ProtoMessage()
func (*WALEntry) ProtoReflect ¶
func (x *WALEntry) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.