common

package
v0.0.0-...-d7b2d65 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartRaftServer

func StartRaftServer(addr, dataDir string) (*raft.Raft, chan bool, error)

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(rc io.ReadCloser) error

func (*FSM) Snapshot

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

type LogEntryData

type LogEntryData struct {
	Key   string
	Value string
}

Jump to

Keyboard shortcuts

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