Documentation
¶
Index ¶
- Variables
- func NewUIChat(ctx context.Context) *am.Machine
- func NewUIClock(ctx context.Context) *am.Machine
- func NewUIStories(ctx context.Context) *am.Machine
- type S
- type State
- type UIBaseGroupsDef
- type UIBaseStatesDef
- type UIChatGroupsDef
- type UIChatStatesDef
- type UIClockGroupsDef
- type UIClockStatesDef
- type UIStoriesGroupsDef
- type UIStoriesStatesDef
Constants ¶
This section is empty.
Variables ¶
var ( // UIBaseStates contains all the states for the UIBase state-machine. UIBaseStates = ssB // UIBaseGroups contains all the state groups for the UIBase state-machine. UIBaseGroups = sgB )
var ( // UIChatStates contains all the states for the UIChat state-machine. UIChatStates = ssC // UIChatGroups contains all the state groups for the UIChat state-machine. UIChatGroups = sgC )
var ( // UIStoriesStates contains all the states for the UIStories state-machine. UIStoriesStates = ssU // UIStoriesGroups contains all the state groups for the UIStories state-machine. UIStoriesGroups = sgU )
var ( // UIClockStates contains all the states for the UIClock state-machine. UIClockStates = ssL // UIClockGroups contains all the state groups for the UIClock state-machine. UIClockGroups = sgL )
var Exception = am.StateException
Exception is a type alias for the exception state.
var SAdd = am.SAdd
SAdd is a func alias for merging lists of states.
var SchemaMerge = am.SchemaMerge
SchemaMerge is a func alias for extending an existing state structure.
var StateAdd = am.StateAdd
StateAdd is a func alias for adding to an existing state definition.
var StateSet = am.StateSet
StateSet is a func alias for replacing parts of an existing state definition.
var UIBaseSchema = SchemaMerge( ss.BasicSchema, ss.DisposedSchema, ssrpc.WorkerSchema, am.Schema{})
UIBaseSchema represents all relations and properties of UIBaseStates.
var UIChatSchema = SchemaMerge( UIBaseSchema, am.Schema{})
UIChatSchema represents all relations and properties of UIChatStates.
var UIClockSchema = SchemaMerge( UIBaseSchema, am.Schema{})
UIClockSchema represents all relations and properties of UIClockStates.
var UIStoriesSchema = SchemaMerge( UIBaseSchema, am.Schema{ ssU.ReqReplaceContent: {Multi: true}, ssU.ReplaceContent: {}, })
UIStoriesSchema represents all relations and properties of UIStoriesStates.
Functions ¶
func NewUIClock ¶
NewUIClock creates a new UIClock state-machine in the most basic form.
Types ¶
type UIBaseGroupsDef ¶
type UIBaseGroupsDef struct {
}
UIBaseGroupsDef contains all the state groups UIBase state-machine.
type UIBaseStatesDef ¶
type UIBaseStatesDef struct {
*am.StatesBase
// inherit from BasicStatesDef
*ss.BasicStatesDef
// inherit from DisposedStatesDef
*ss.DisposedStatesDef
// inherit from WorkerStatesDef
*ssrpc.WorkerStatesDef
}
UIBaseStatesDef contains all the states of the UIBase state-machine.
type UIChatGroupsDef ¶
type UIChatGroupsDef struct {
}
UIChatGroupsDef contains all the state groups UIChat state-machine.
type UIChatStatesDef ¶
type UIChatStatesDef struct {
*am.StatesBase
// inherit from BasicStatesDef
*UIBaseStatesDef
}
UIChatStatesDef contains all the states of the UIChat state-machine.
type UIClockGroupsDef ¶
type UIClockGroupsDef struct {
}
UIClockGroupsDef contains all the state groups UIClock state-machine.
type UIClockStatesDef ¶
type UIClockStatesDef struct {
*am.StatesBase
// inherit from UIBaseStatesDef
*UIBaseStatesDef
}
UIClockStatesDef contains all the states of the UIClock state-machine.
type UIStoriesGroupsDef ¶
type UIStoriesGroupsDef struct {
}
UIStoriesGroupsDef contains all the state groups UIStories state-machine.
type UIStoriesStatesDef ¶
type UIStoriesStatesDef struct {
*am.StatesBase
ReqReplaceContent string
ReplaceContent string
// inherit from UIBaseStatesDef
*UIBaseStatesDef
}
UIStoriesStatesDef contains all the states of the UIStories state-machine.