Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ExampleStates contains all the states for the Example machine. ExampleStates = ssE // ExampleGroups contains all the state groups for the Example machine. ExampleGroups = sgE )
View Source
var ExampleStruct = StructMerge( ssrpc.WorkerStruct, am.Struct{ ssE.Foo: {Remove: sgE.Mutex}, ssE.Bar: {Remove: sgE.Mutex}, ssE.Baz: {Remove: sgE.Mutex}, })
ExampleStruct represents all relations and properties of ExampleStates.
View Source
var SAdd = am.SAdd
SAdd is a func alias for merging lists of states.
View Source
var StateAdd = am.StateAdd
StateAdd is a func alias for adding to an existing state definition.
View Source
var StateSet = am.StateSet
StateSet is a func alias for replacing parts of an existing state definition.
View Source
var StructMerge = am.StructMerge
StructMerge is a func alias for extending an existing state structure.
Functions ¶
This section is empty.
Types ¶
type ExampleGroupsDef ¶
type ExampleGroupsDef struct {
Mutex S
}
ExampleGroupsDef contains all the state groups Example state machine.
type ExampleStatesDef ¶
type ExampleStatesDef struct { *am.StatesBase Foo string Bar string Baz string // inherit from rpc/WorkerStatesDef *ssrpc.WorkerStatesDef }
ExampleStatesDef contains all the states of the Example state machine.
Click to show internal directories.
Click to hide internal directories.