wal

package
v0.0.0-...-e141e8f Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NilSequence     = Sequence(0)
	InitialSequence = Sequence(1)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Element

type Element struct {
	Seq    Sequence
	Msg    *pb.PutRequest
	DoneCh chan<- error
}

type Iterator

type Iterator interface {
	Next() *Element
}

type Sequence

type Sequence uint64

type WAL

type WAL interface {
	Append(msg *pb.PutRequest, doneCh chan<- error) (Sequence, error)
	AppendWith(seq Sequence, msg *pb.PutRequest) error
	Iterate(fromSeq, toSeq Sequence) Iterator
	Latest() *Element
}

func NewMemWAL

func NewMemWAL() WAL

Jump to

Keyboard shortcuts

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