store

package
v2.1.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStateFromRepository

func NewStateFromRepository() (*state.State, error)

Types

type Store

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

func NewStateStore

func NewStateStore(st *state.State) *Store

func (*Store) Apply

func (s *Store) Apply(l *raft.Log) interface{}

func (*Store) Restore

func (s *Store) Restore(rc io.ReadCloser) error

func (*Store) Snapshot

func (s *Store) Snapshot() (raft.FSMSnapshot, error)

func (*Store) VisitReadonlyState

func (s *Store) VisitReadonlyState(f func(state.ReadonlyState))

func (*Store) VisitState

func (s *Store) VisitState(f func(writableState state.WritableState))

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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