fsm

package
v0.0.0-...-9727b55 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFsm

func NewFsm(d *db.MemoryDb) raft.FSM

Types

type ApplyResponse

type ApplyResponse struct {
	Error error
	Data  interface{}
}

type CommandOperation

type CommandOperation int
const (
	InsertElement CommandOperation = iota + 1
	DeleteElement
	DeleteAll
)

type CommandPayload

type CommandPayload struct {
	Operation CommandOperation
	Value     []byte
}

type DeleteAllValue

type DeleteAllValue struct {
	NodeId uuid.UUID
}

type DeleteConnectionValue

type DeleteConnectionValue struct {
	ConnectionId uuid.UUID
}

type ElementValue

type ElementValue struct {
	ConnectionId uuid.UUID
	UserId       uuid.UUID
	NodeId       uuid.UUID
}

Jump to

Keyboard shortcuts

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