package states
Import Path
/examples/wasm/states (on go.dev)
Dependency Relation
imports 3 packages, and imported by 3 packages
Package-Level Type Names (total 8)
BarGroupsDef contains all the state groups Bar state machine.
var BarGroups
BarStatesDef contains all the states of the Browser state machine "bar".
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.
Message received and should be processed.
inherit from rpc/StateSourceStatesDef
ErrOnClient indicates an error added on the Network Machine.
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.
SubmitMsg string
( BarStatesDef) Names() machine.S
( BarStatesDef) SetNames(names machine.S)
( BarStatesDef) SetStateGroups(groups map[string][]int, order []string)
( BarStatesDef) StateGroups() (map[string][]int, []string)
BarStatesDef : github.com/pancsta/asyncmachine-go/pkg/machine.States
var BarStates
FooGroupsDef contains all the state groups Foo state machine.
var FooGroups
FooStatesDef contains all the states of the Server state machine "foo".
Timeout without msgs.
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.
Message received and should be processed.
inherit from rpc/StateSourceStatesDef
ErrOnClient indicates an error added on the Network Machine.
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.
( FooStatesDef) Names() machine.S
( FooStatesDef) SetNames(names machine.S)
( FooStatesDef) SetStateGroups(groups map[string][]int, order []string)
( FooStatesDef) StateGroups() (map[string][]int, []string)
FooStatesDef : github.com/pancsta/asyncmachine-go/pkg/machine.States
var FooStates
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 12)
BarGroups contains all the state groups for the Bar machine.
BarSchema represents all relations and properties of BarStates.
BarStates contains all the states for the Bar machine.
Exception is a type alias for the Exception state.
FooGroups contains all the state groups for the Foo machine.
FooSchema represents all relations and properties of FooStates.
FooStates contains all the states for the Foo machine.
Ready is a type alias for the Ready state.
Start is a type alias for the Start state.
![]() |
The pages are generated with Golds v0.8.4. (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. |