states

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicEvent

type BasicEvent interface {
	New()
}

Event to drive the change of states

type BasicState

type BasicState interface {
	Change()
	Process()
}

Basic state representation of the consensus state machine

type Commit

type Commit struct {
}

type DriveChain

type DriveChain struct {
}

type EventActionCommit

type EventActionCommit struct {
	Commit *Commit `json:"commit"`
}

type EventActionDriveChain

type EventActionDriveChain struct {
	DriveChain *DriveChain `json:"drive chain"`
}

type EventActionNewHeight

type EventActionNewHeight struct {
	NewHeight *NewHeight `json:"new height"`
}

type EventActionPrecommit

type EventActionPrecommit struct {
	Precommit *Precommit `json:"precommit"`
}

type EventActionPrevote

type EventActionPrevote struct {
	Prevote *Prevote `json:"prevote"`
}

type EventActionPropose

type EventActionPropose struct {
	Propose *Propose `json:"propose"`
}

type NewHeight

type NewHeight struct {
}

type Precommit

type Precommit struct {
}

type Prevote

type Prevote struct {
}

type Propose

type Propose struct {
}

Jump to

Keyboard shortcuts

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