fsm

package
v0.0.0-...-94d2ec4 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyRequest

type ApplyRequest struct {
	Command func() interface{}
}

type ApplyResponse

type ApplyResponse struct {
	Data  interface{}
	Error error
}

type Fsm

type Fsm struct {
	Raft    *raft.Raft
	Manager *transport.Manager
	// contains filtered or unexported fields
}

func New

func New(nodeConfig node.Config) *Fsm

func (*Fsm) Apply

func (f *Fsm) Apply(log *raft.Log) interface{}

func (*Fsm) Restore

func (f *Fsm) Restore(closer 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