Documentation ¶
Overview ¶
Package simplewal is a basic WAL implementation meant to be the first 'real' WAL option for mir. 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.RetentionIndex) error
- func (w *WAL) ApplyEvent(event *eventpb.Event) (*events.EventList, error)
- func (w *WAL) ApplyEvents(eventsIn *events.EventList) (*events.EventList, error)
- func (w *WAL) Close() error
- func (w *WAL) ImplementsModule()
- func (w *WAL) IsEmpty() (bool, error)
- func (w *WAL) LoadAll(_ context.Context) (*events.EventList, error)
- func (w *WAL) Sync() error
- func (w *WAL) Truncate(retentionIndex t.RetentionIndex) 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 WAL ¶
type WAL struct {
// contains filtered or unexported fields
}
func (*WAL) ApplyEvents ¶
func (*WAL) ImplementsModule ¶
func (w *WAL) ImplementsModule()
The ImplementsModule method only serves the purpose of indicating that this is a Module and must not be called.
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.