engine

package
v0.0.0-...-7464013 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MinDataKey = maxMetaKey

MinDataKey is the minimum key allowable data key.

Functions

This section is empty.

Types

type BatchingEngine

type BatchingEngine interface {
	Engine
	ApplyEntries([]raftpb.Entry)
}

BatchingEngine represents a storage engine that can apply a batch of Raft entries all at once. This is often more efficient than applying an entry at a time.

type Engine

type Engine interface {
	SetHardState(raftpb.HardState, bool)
	ApplyEntry(raftpb.Entry)
	Clear()
	CloseEngine()
}

Engine represents a storage engine that Raft entries are applied to.

func NewMem

func NewMem() Engine

NewMem creates a new in-memory storage engine.

func NewPebble

func NewPebble(root string, disableWAL bool) Engine

NewPebble creates an LSM-based storage engine using Pebble.

Jump to

Keyboard shortcuts

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