package states
Import Path
/examples/benchmark_grpc/states (on go.dev)
Dependency Relation
imports 3 packages, and imported by one package
Package-Level Type Names (total 4)
S is a type alias for a list of state names.
State is a type alias for a state definition. See [am.State].
WorkerGroupsDef contains all the state groups of the NetMach state machine.
Values group contains mutually exclusive values.
var WorkerGroups
WorkerStatesDef contains all the states of the NetMach state machine.
inherit from BasicSchema
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.
CallOp string
Event 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 StateSourceStatesDef
ErrOnClient indicates an error added on the Network Machine.
Value1 string
Value2 string
Value3 string
( WorkerStatesDef) Names() machine.S
( WorkerStatesDef) SetNames(names machine.S)
( WorkerStatesDef) SetStateGroups(groups map[string][]int, order []string)
( WorkerStatesDef) StateGroups() (map[string][]int, []string)
WorkerStatesDef : github.com/pancsta/asyncmachine-go/pkg/machine.States
var WorkerStates
Package-Level Variables (total 6)
Exception is a type alias for the Exception state.
Ready is a type alias for the Ready state.
Start is a type alias for the Start state.
WorkerGroups contains all the state groups for the NetMach machine.
WorkerSchema represents all relations and properties of WorkerStates.
WorkerStates contains all the states for the NetMach machine.
![]() |
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. |