Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // WorkerStates contains all the states for the NetMach machine. WorkerStates = ws // WorkerGroups contains all the state groups for the NetMach machine. WorkerGroups = wg )
View Source
var Exception = am.StateException
Exception is a type alias for the Exception state.
View Source
var Ready = am.StateReady
Ready is a type alias for the Ready state.
View Source
var Start = am.StateStart
Start is a type alias for the Start state.
View Source
var WorkerSchema = ssam.BasicSchema.Merge( ssrpc.StateSourceSchema, am.Schema{ ws.CallOp: { Multi: true, Require: S{ws.Start}, }, ws.Event: { Multi: true, Require: S{ws.Start}, }, ws.Value1: {Remove: wg.Values}, ws.Value2: {Remove: wg.Values}, ws.Value3: {Remove: wg.Values}, })
WorkerSchema represents all relations and properties of WorkerStates.
Functions ¶
This section is empty.
Types ¶
type WorkerGroupsDef ¶
type WorkerGroupsDef struct {
// Values group contains mutually exclusive values.
Values S
}
WorkerGroupsDef contains all the state groups of the NetMach state machine.
type WorkerStatesDef ¶
type WorkerStatesDef struct {
*am.StatesBase
Event string
Value1 string
Value2 string
Value3 string
CallOp string
// inherit from BasicSchema
*ssam.BasicStatesDef
// inherit from StateSourceStatesDef
*ssrpc.StateSourceStatesDef
}
WorkerStatesDef contains all the states of the NetMach state machine.
Click to show internal directories.
Click to hide internal directories.