raftfsm

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

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

Go to latest
Published: Jul 25, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type McdStore

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

func NewMcdStore

func NewMcdStore(p *pool.Pool) (s *McdStore, err error)

func (*McdStore) Apply

func (m *McdStore) Apply(l *raft.Log) interface{}

func (*McdStore) GetLastApplied

func (m *McdStore) GetLastApplied() (index uint64, err error)

func (*McdStore) Restore

func (m *McdStore) Restore(io.ReadCloser) (err error)

func (*McdStore) SetLastApplied

func (m *McdStore) SetLastApplied(index uint64) (err error)

func (*McdStore) Snapshot

func (m *McdStore) Snapshot() (fsnap raft.FSMSnapshot, err error)

Jump to

Keyboard shortcuts

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