package states

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

Dependency Relation
	imports 3 packages, and imported by one package

Involved Source Files ss_worker.go states_utils.go
Package-Level Type Names (total 3)
/* sort by: | */
S is a type alias for a list of state names.
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 inherit from NetSourceStatesDef 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. 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 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 NetMach machine.
WorkerSchema represents all relations and properties of WorkerStates.
WorkerStates contains all the states for the NetMach machine.