wal

package
v0.1.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCorrupt = errors.New("meldbase wal: corrupt log")

Functions

func Open

func Open(path string, checkpointToken uint64) (*Log, []Record, error)

Types

type Log

type Log struct {
	// contains filtered or unexported fields
}

func (*Log) Append

func (l *Log) Append(token uint64, payload []byte) error

func (*Log) Close

func (l *Log) Close() error

func (*Log) Reset

func (l *Log) Reset(checkpointToken uint64) error

type Record

type Record struct {
	Token   uint64
	Payload []byte
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL