package states

Import Path
	/examples/wasm/states (on go.dev)

Dependency Relation
	imports 3 packages, and imported by 2 packages

Involved Source Files ss_wa_sm.go states_utils.go
Package-Level Type Names (total 7)
/* sort by: | */
BarGroupsDef contains all the state groups Bar state machine. var BarGroups
BarStatesDef contains all the states of the Browser state machine "bar". inherit from SharedStatesDef 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 SharedStatesDef 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.
SharedGroupsDef contains all the state groups Shared state machine. var SharedGroups
SharedStatesDef contains all the states of the Shared 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. Message received and should be processed. 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. 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. ( SharedStatesDef) Names() machine.S ( SharedStatesDef) SetNames(names machine.S) ( SharedStatesDef) SetStateGroups(groups map[string][]int, order []string) ( SharedStatesDef) StateGroups() (map[string][]int, []string) SharedStatesDef : github.com/pancsta/asyncmachine-go/pkg/machine.States var SharedStates
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.
SharedGroups contains all the state groups for the Shared machine.
SharedSchema represents all relations and properties of SharedStates.
SharedStates contains all the states for the Shared machine.
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.