package states
Import Path
github.com/pancsta/asyncmachine-go/examples/mach_template/states (on go.dev)
Dependency Relation
imports 2 packages, and imported by one package
Involved Source Files
Package states contains a stateful schema-v2 for MachTemplate.
Bootstrapped with am-gen. Edit manually or re-gen & merge.
states_utils.go
Package-Level Type Names (total 4)
MachTemplateGroupsDef contains all the state groups MachTemplate state machine.
ConnectedGroupsDef *ss.ConnectedGroupsDef
ConnectedGroupsDef.Connected states.S
Group1 S
Group2 S
var MachTemplateGroups
MachTemplateStatesDef contains all the states of the MachTemplate state machine.
Bar string
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.
Baz string
BazDone string
Channel string
inherit from ConnectedStatesDef
ConnectedStatesDef.Connected states.ConnectedState
ConnectedStatesDef.Connecting states.ConnectedState
ConnectedStatesDef.Disconnected states.ConnectedState
ConnectedStatesDef.Disconnecting states.ConnectedState
ErrConnecting is a detailed connection error, eg no access.
inherit from DisposedStatesDef
Disposed indicates that the machine has disposed allocated resoruces
and is ready to be garbage collected by calling [am.Machine.Dispose].
Disposing indicates that the machine is during the disposal process.
RegisterDisposal registers a disposal handler passed under the
DisposedArgHandler key.
ErrExample string
Foo 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.
( MachTemplateStatesDef) Names() machine.S
( MachTemplateStatesDef) SetNames(names machine.S)
( MachTemplateStatesDef) SetStateGroups(groups map[string][]int, order []string)
( MachTemplateStatesDef) StateGroups() (map[string][]int, []string)
MachTemplateStatesDef : github.com/pancsta/asyncmachine-go/pkg/machine.States
var MachTemplateStates
S is a type alias for a list of state names.
State is a type alias for a state definition. See [am.State].
Package-Level Variables (total 8)
Exception is a type alias for the exception state.
MachTemplateGroups contains all the state groups for the MachTemplate machine.
MachTemplateSchema represents all relations and properties of MachTemplateStates.
MachTemplateStates contains all the states for the MachTemplate machine.
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.
![]() |
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. |