raft

package
v0.0.0-...-85cd7ee Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UpdateCommand commandType = "update"
)

Variables

This section is empty.

Functions

func CommandMarshal

func CommandMarshal(ope commandType, key string, value any) ([]byte, error)

Types

type Command

type Command struct {
	Op    commandType `yaml:"ope"`
	Key   string      `yaml:"key"`
	Value []byte      `yaml:"value,omitempty"`
}

type FSM

type FSM interface {
	raft.FSM
	SetClient(client feature.Feature)
}

Jump to

Keyboard shortcuts

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