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 ExampleSchema = ssrpc.StateSourceSchema.Merge(am.Schema{
ssE.Foo: {Remove: sgE.Mutex},
ssE.Bar: {Remove: sgE.Mutex},
ssE.Baz: {Remove: sgE.Mutex},
})
ExampleSchema represents all relations and properties of ExampleStates. inherit from rpc/WorkerSchema
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.
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/StateSourceStatesDef
*ssrpc.StateSourceStatesDef
}
ExampleStatesDef contains all the states of the Example state machine.
Click to show internal directories.
Click to hide internal directories.