package states
Import Path
/examples/wasm/states (on go.dev)
Dependency Relation
imports 3 packages, and imported by 2 packages
Package-Level Type Names (total 7)
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.
ErrProviding - NetMach had issues providing the requested payload.
ErrSendPayload - RPC server had issues sending the requested payload to
the RPC client.
SendPayload - Net Source has delivered the requested payload to the RPC
server (not the Consumer) using rpc.Pass, rpc.A, and rpc.MsgSrvPayload.
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.
ErrProviding - NetMach had issues providing the requested payload.
ErrSendPayload - RPC server had issues sending the requested payload to
the RPC client.
SendPayload - Net Source has delivered the requested payload to the RPC
server (not the Consumer) using rpc.Pass, rpc.A, and rpc.MsgSrvPayload.
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.
Package-Level Variables (total 13)
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.
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.
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. |