raft

package
v0.0.0-...-7b2b905 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRaftServer

func NewRaftServer(store *dovii.KVStore) (*raft.Raft, error)

Types

type BitcaskFSM

type BitcaskFSM struct {
	Store *dovii.KVStore
}

func (*BitcaskFSM) Apply

func (fsm *BitcaskFSM) Apply(raftLog *raft.Log) interface{}

func (*BitcaskFSM) Restore

func (fsm *BitcaskFSM) Restore(rc io.ReadCloser) error

func (*BitcaskFSM) Snapshot

func (fsm *BitcaskFSM) Snapshot() (raft.FSMSnapshot, error)

type LogMessage

type LogMessage struct {
	Key   string
	Value string
}

Jump to

Keyboard shortcuts

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