store

package
v0.0.0-...-f429149 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	// Log returns the Raft log
	Log() log.Log

	// Reader returns the primary Raft log reader
	Reader() log.Reader

	// Writer returns the primary Raft log writer
	Writer() log.Writer

	// Snapshot returns the snapshot store
	Snapshot() snapshot.Store

	// Close closes the store
	Close() error
}

Store provides storage interfaces for Raft state

func NewMemoryStore

func NewMemoryStore() Store

NewMemoryStore returns a new in-memory store

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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