states

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrNetwork  = "ErrNetwork"
	ErrRpc      = "ErrRpc"
	ErrOnClient = "ErrOnClient"

	Start = "Start"
	Ready = "Ready"

	HandshakeDone = "HandshakeDone"
	Handshaking   = "Handshaking"
)

Variables

View Source
var (
	GroupHandshake = S{Handshaking, HandshakeDone}
)

Names is an ordered list of all the state names.

View Source
var States = am.Struct{

	ErrNetwork:  {Require: S{am.Exception}},
	ErrRpc:      {Require: S{am.Exception}},
	ErrOnClient: {Require: S{am.Exception}},

	Start: {},

	Handshaking: {
		Require: S{Start},
		Remove:  GroupHandshake,
	},
	HandshakeDone: {
		Require: S{Start},
		Remove:  GroupHandshake,
	},
}

States map defines relations and properties of states.

Functions

This section is empty.

Types

type S

type S = am.S

S is a type alias for a list of state names.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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