state

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	// ApplyIndex reads and applies the given index to the state machine
	ApplyIndex(index raft.Index)

	// Apply applies a committed entry to the state machine
	ApplyEntry(entry *log.Entry, stream streams.WriteStream)

	// Close closes the state manager
	Close() error
}

Manager provides a state machine to which to apply Raft log entries

func NewManager

func NewManager(member raft.MemberID, store store.Store, registry *node.Registry) Manager

NewManager returns a new Raft state manager

Jump to

Keyboard shortcuts

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