package states
Import Path
github.com/pancsta/asyncmachine-go/examples/benchmark_grpc/states (on go.dev)
Dependency Relation
imports 3 packages, and imported by one package
Package-Level Type Names (total 3)
S is a type alias for a list of state names.
WorkerGroupsDef contains all the state groups of the Worker state machine.
Values group contains mutually exclusive values.
var WorkerGroups
WorkerStatesDef contains all the states of the Worker 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.
Value1 string
Value2 string
Value3 string
inherit from WorkerStatesDef
ErrProviding - Worker had issues providing the requested payload.
ErrSendPayload - RPC server had issues sending the requested payload to
the RPC client.
SendPayload - Worker delivered the requested payload to the RPC server
using rpc.Pass, rpc.A, and rpc.ArgsPayload.
( 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 7)
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.
WorkerGroups contains all the state groups for the Worker machine.
WorkerSchema represents all relations and properties of WorkerStates.
WorkerStates contains all the states for the Worker machine.
![]() |
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. |