raft

package
v0.0.0-...-ce11556 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnableWriteNode uint32 = 0
	UnableWriteNode uint32 = 1
)

Variables

This section is empty.

Functions

func NewCacheManager

func NewCacheManager() *cacheManager

func NewConfig

func NewConfig() *config

func Server

func Server()

Types

type FSM

type FSM struct {
	// contains filtered or unexported fields
}

func (*FSM) Apply

func (f *FSM) Apply(logEntry *raft.Log) interface{}

func (*FSM) Restore

func (f *FSM) Restore(serialized io.ReadCloser) error

func (*FSM) Snapshot

func (f *FSM) Snapshot() (raft.FSMSnapshot, error)

Jump to

Keyboard shortcuts

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