package states
Import Path
/examples/tui/states (on go.dev)
Dependency Relation
imports 3 packages, and imported by one package
Package-Level Type Names (total 4)
S is a type alias for a list of state names.
State is a type alias for a state definition. See [am.State].
TuiGroupsDef contains all the state groups Tui state-machine.
var TuiGroups
TuiStatesDef contains all the states of the Tui state-machine.
inherit from BasicStatesDef
ErrHandlerTimeout indicates one of the state machine handlers has timed
out.
ErrNetwork indicates a generic network error.
Healthcheck is a periodic request making sure that the machine is still
alive.
Heartbeat is a periodic state that ensures the integrity of the machine.
Ready indicates the machine meets criteria to perform work.
Start indicates the machine should be working. Removing start can force
stop the machine.
IncomingData string
Resized string
StatesBase *am.StatesBase
Exception is the only built-in state and mean a global error. All errors
have to [State.Require] the Exception state. If [Machine.PanicToErr] is
true, Exception will receive it.
( TuiStatesDef) Names() machine.S
( TuiStatesDef) SetNames(names machine.S)
( TuiStatesDef) SetStateGroups(groups map[string][]int, order []string)
( TuiStatesDef) StateGroups() (map[string][]int, []string)
TuiStatesDef : github.com/pancsta/asyncmachine-go/pkg/machine.States
var TuiStates
Package-Level Functions (only one)
NewTui creates a new Tui state-machine in the most basic form.
Package-Level Variables (total 8)
Exception is a type alias for the exception state.
SAdd is a func alias for merging lists of states.
SchemaMerge is a func alias for extending an existing state structure.
StateAdd is a func alias for adding to an existing state definition.
StateSet is a func alias for replacing parts of an existing state
definition.
TuiGroups contains all the state groups for the Tui state-machine.
TuiSchema represents all relations and properties of TuiStates.
TuiStates contains all the states for the Tui state-machine.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |