package states
Import Path
/examples/arpc/states (on go.dev)
Dependency Relation
imports 2 packages, and imported by 3 packages
Package-Level Type Names (total 5)
ExampleGroupsDef contains all the state groups Example state machine.
Mutex S
var ExampleGroups
ExampleStatesDef contains all the states of the Example state machine.
Bar string
Baz 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.
inherit from rpc/StateSourceStatesDef
ErrOnClient indicates an error added on the Network Machine.
( ExampleStatesDef) Names() machine.S
( ExampleStatesDef) SetNames(names machine.S)
( ExampleStatesDef) SetStateGroups(groups map[string][]int, order []string)
( ExampleStatesDef) StateGroups() (map[string][]int, []string)
ExampleStatesDef : github.com/pancsta/asyncmachine-go/pkg/machine.States
var ExampleStates
S is a type alias for a list of state names. See [am.S].
Schema is a type alias for a map of state names to state definitions. See [am.Schema].
State is a type alias for a state definition. See [am.State].
Package-Level Variables (total 6)
ExampleGroups contains all the state groups for the Example machine.
ExampleSchema represents all relations and properties of ExampleStates.
inherit from rpc/WorkerSchema
ExampleStates contains all the states for the Example machine.
Exception is a type alias for the Exception state. See [am.StateException].
Ready is a type alias for the Ready state. See [am.StateReady].
Start is a type alias for the Start state. See [am.StateStart].
![]() |
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. |