storage

package
v0.0.0-...-975194c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(location string, confState etcdraftpb.ConfState) *storage

Types

type Storage

type Storage interface {
	raft.Storage

	Append([]etcdraftpb.Entry) error
	HardState() etcdraftpb.HardState
	// save snapshot to disk and compact entries up to snapshot index
	SaveSnapshot(index uint64, data []byte, confState etcdraftpb.ConfState) error
	SetHardState(etcdraftpb.HardState) error
}

Jump to

Keyboard shortcuts

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