states

package
v0.0.0-...-782863c Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Final

type Final struct {
	Node  uint64
	Round uint64
}

func (Final) GetRound

func (f Final) GetRound() uint64

func (Final) SdKind

func (f Final) SdKind() StateDataKind

type HNV

type HNV struct {
	Node  uint64
	Round uint64
	View  uint32
}

func (HNV) GetRound

func (h HNV) GetRound() uint64

func (HNV) SdKind

func (h HNV) SdKind() StateDataKind

type PrePrepared

type PrePrepared struct {
	Node  uint64
	Round uint64
	View  uint32
}

func (PrePrepared) GetRound

func (p PrePrepared) GetRound() uint64

func (PrePrepared) SdKind

func (p PrePrepared) SdKind() StateDataKind

type Prepared

type Prepared struct {
	Node  uint64
	Round uint64
	View  uint32
}

func (Prepared) GetRound

func (p Prepared) GetRound() uint64

func (Prepared) SdKind

func (p Prepared) SdKind() StateDataKind

type StateData

type StateData interface {
	GetRound() uint64
	SdKind() StateDataKind
}

type StateDataKind

type StateDataKind uint8
const (
	UnknownState StateDataKind = iota
	FinalState
	HNVState
	PreparedState
	PrePreparedState
	ViewState
	ViewChangedState
)

func (StateDataKind) String

func (s StateDataKind) String() string

type View

type View struct {
	Node  uint64
	Round uint64
}

func (View) GetRound

func (v View) GetRound() uint64

func (View) SdKind

func (v View) SdKind() StateDataKind

type ViewChanged

type ViewChanged struct {
	Node  uint64
	Round uint64
	View  uint32
}

func (ViewChanged) GetRound

func (v ViewChanged) GetRound() uint64

func (ViewChanged) SdKind

func (v ViewChanged) SdKind() StateDataKind

Jump to

Keyboard shortcuts

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