MCPcopy Create free account

hub / github.com/Gurpartap/statemachine-go / functions

Functions254 in github.com/Gurpartap/statemachine-go

↓ 91 callersMethodTo
()
transition.go:7
↓ 61 callersMethodTransition
Transition begins the transition builder, accepting states and guards.
event_builder.go:24
↓ 60 callersMethodFrom
()
transition.go:6
↓ 35 callersMethodDo
(callbackFunc EventCallbackFunc)
event_callback_builder.go:25
↓ 32 callersMethodEvent
()
event.go:6
↓ 18 callersMethodInitialState
InitialState defines the state that the machine initializes with. Initial state must be defined for every state machine.
machine_builder.go:29
↓ 18 callersMethodStates
States pre-defines the set of known states. This is optional because all known states will be identified from other definitions.
machine_builder.go:25
↓ 15 callersMethodBeforeTransition
()
machine_builder.go:36
↓ 14 callersMethodAfterTransition
()
machine_builder.go:38
↓ 14 callersMethodGetState
()
machine.go:11
↓ 14 callersFunctionnewTransitionCallbackToBuilder
newTransitionCallbackToBuilder returns a zero-valued instance of transitionCallbackToBuilder, which implements TransitionCallbackToBuilder.
transition_callback_builder.go:220
↓ 11 callersMethodIf
(guards ...TransitionGuard)
transition_builder.go:39
↓ 10 callersMethodFire
(event string)
machine.go:17
↓ 9 callersMethodLabel
(label string)
choice_builder.go:16
↓ 9 callersMethodSetFromAnyExcept
(exceptStates ...string)
transition_def.go:100
↓ 9 callersMethodUnless
(guard TransitionGuard)
choice_builder.go:17
↓ 8 callersMethodFromAny
()
transition_builder.go:17
↓ 8 callersMethodSubmachine
(idPath ...string)
machine.go:15
↓ 6 callersMethodAny
()
transition_callback_builder.go:42
↓ 6 callersMethodID
(id string)
machine_builder.go:21
↓ 6 callersMethodSetToAnyExcept
(exceptStates ...string)
transition_callback_def.go:88
↓ 6 callersMethodsetCurrentState
(state interface{})
machine_impl.go:313
↓ 5 callersMethodGetStateMap
()
machine.go:9
↓ 5 callersMethodSetTo
(state string)
transition_def.go:106
↓ 4 callersMethodAfterFailure
()
machine_builder.go:39
↓ 4 callersMethodBuild
Build plugs the collected feature definitions into any object that understands them (implements dsl.EventBuildable). Use this method if you're not usi
event_builder.go:29
↓ 4 callersMethodMatches
(matchFrom string)
transition_def.go:73
↓ 4 callersMethodOnAnyEvent
()
event_callback_builder.go:17
↓ 4 callersMethodexec
(callback TransitionCallbackFunc, args map[reflect.Type]interface{})
machine_impl.go:427
↓ 3 callersMethodBuild
Build plugs the collected feature definitions into any object that understands them (implements MachineBuildable). Use this method if you're not using
machine_builder.go:17
↓ 3 callersMethodCall
()
internal/dynafunc/dynamic_func.go:32
↓ 3 callersMethodGetState
GetState implements Machine.
machine_impl.go:110
↓ 3 callersFunctionNewDynamicFunc
(fn interface{}, in map[reflect.Type]interface{})
internal/dynafunc/dynamic_func.go:24
↓ 3 callersFunctionNewEventBuilder
NewEventBuilder returns a zero-valued instance of eventBuilder, which implements EventBuilder.
event_builder.go:34
↓ 3 callersFunctionNewMachineDef
()
machine_def.go:17
↓ 3 callersFunctionexecGuard
(guard TransitionGuard, args map[reflect.Type]interface{})
transition_def.go:23
↓ 3 callersMethodmatchTransition
(transitions []*TransitionDef, fromState string)
machine_impl.go:229
↓ 3 callersFunctionnewEventCallbackOnBuilder
newEventCallbackOnBuilder returns a zero-valued instance of eventCallbackOnBuilder, which implements EventCallbackOnBuilder.
event_callback_builder.go:62
↓ 3 callersFunctionnewEventImpl
()
event_impl.go:8
↓ 3 callersFunctionnewTransitionCallbackBuilder
newTransitionCallbackBuilder returns a zero-valued instance of transitionCallbackBuilder, which implements TransitionCallbackBuilder.
transition_callback_builder.go:83
↓ 3 callersFunctionnewTransitionCallbackFromBuilder
newTransitionCallbackFromBuilder returns a zero-valued instance of transitionCallbackFromBuilder, which implements TransitionCallbackFromBuilder.
transition_callback_builder.go:132
↓ 3 callersFunctionnewTransitionFromBuilder
newTransitionFromBuilder returns a zero-valued instance of TransitionFromBuilder, which implements TransitionFromBuilder.
transition_builder.go:83
↓ 3 callersFunctionnewTransitionImpl
(from, to string)
transition_impl.go:8
↓ 2 callersMethodAddCallbackFunc
(callbackFunc EventCallbackFunc)
event_callback_def.go:53
↓ 2 callersMethodAddEvent
(event string, eventDef *EventDef)
machine_def.go:40
↓ 2 callersMethodAddIfGuard
(guards ...TransitionGuard)
transition_def.go:110
↓ 2 callersMethodAddUnlessGuard
(guards ...TransitionGuard)
transition_def.go:117
↓ 2 callersMethodAroundTransition
()
machine_builder.go:37
↓ 2 callersMethodBuild
(machineBuilderFn func(machineBuilder MachineBuilder))
machine.go:6
↓ 2 callersMethodEvent
Event provides the ability to define possible transitions for an event.
machine_builder.go:34
↓ 2 callersMethodFire
Fire implements Machine.
machine_impl.go:139
↓ 2 callersMethodGetIsAutoStartOn
()
example_test.go:21
↓ 2 callersMethodGetIsProcessRunning
()
example_test.go:25
↓ 2 callersMethodRestart
()
example_test.go:31
↓ 2 callersMethodSend
(signal Message)
machine.go:19
↓ 2 callersMethodSetFrom
(states ...string)
transition_def.go:94
↓ 2 callersMethodSetOnAnyEventExcept
(exceptEvents ...string)
event_callback_def.go:47
↓ 2 callersMethodSetOnFalse
(eventBuilderFn func(eventBuilder EventBuilder))
choice_def.go:43
↓ 2 callersMethodSetOnTrue
(eventBuilderFn func(eventBuilder EventBuilder))
choice_def.go:34
↓ 2 callersMethodStart
()
example_test.go:29
↓ 2 callersMethodStop
()
example_test.go:30
↓ 2 callersMethodToAny
()
transition_callback_builder.go:52
↓ 2 callersFunctionassertGuardKind
(guard TransitionGuard)
transition_def.go:124
↓ 2 callersFunctionnewTransitionAndGuardBuilder
newTransitionAndGuardBuilder returns a zero-valued instance of TransitionAndGuardBuilder, which implements TransitionAndGuardBuilder.
transition_builder.go:153
↓ 2 callersFunctionnewTransitionToBuilder
newTransitionToBuilder returns a zero-valued instance of TransitionToBuilder, which implements TransitionToBuilder.
transition_builder.go:128
↓ 1 callersMethodAddAfterCallback
(CallbackDef *TransitionCallbackDef)
machine_def.go:52
↓ 1 callersMethodAddAroundCallback
(CallbackDef *TransitionCallbackDef)
machine_def.go:48
↓ 1 callersMethodAddBeforeCallback
(CallbackDef *TransitionCallbackDef)
machine_def.go:44
↓ 1 callersMethodAddFailureCallback
(CallbackDef *EventCallbackDef)
machine_def.go:56
↓ 1 callersMethodAddTransition
(transitionDef *TransitionDef)
event_def.go:22
↓ 1 callersMethodChoice
TODO: Assert that Choice(...) and Transition() are not used together.
event_builder.go:21
↓ 1 callersMethodIsAllowed
(fromState string, machine Machine)
transition_def.go:42
↓ 1 callersMethodIsState
IsState implements Machine.
machine_impl.go:123
↓ 1 callersMethodMatchesEvent
(event string)
event_callback_def.go:21
↓ 1 callersFunctionNewEditorMode
()
examples/texteditor/editor_mode.go:14
↓ 1 callersFunctionNewMachine
NewMachine returns a zero-valued instance of machine, which implements Machine.
machine_impl.go:32
↓ 1 callersFunctionNewMachineBuilder
NewMachineBuilder returns a zero-valued instance of machineBuilder, which implements MachineBuilder.
machine_builder.go:44
↓ 1 callersFunctionNewProcess
()
examples/cognizant/process.go:22
↓ 1 callersMethodOnFalse
(eventBuilderFn func(eventBuilder EventBuilder))
choice_builder.go:19
↓ 1 callersMethodOnTrue
(eventBuilderFn func(eventBuilder EventBuilder))
choice_builder.go:18
↓ 1 callersMethodSetAutoStartOn
()
examples/cognizant/process.go:76
↓ 1 callersMethodSetChoice
(choiceDef *ChoiceDef)
event_def.go:18
↓ 1 callersMethodSetCondition
(condition ChoiceCondition)
choice_def.go:26
↓ 1 callersMethodSetCurrentState
(state interface{})
machine.go:12
↓ 1 callersMethodSetCurrentState
SetCurrentState implements Machine.
machine_impl.go:115
↓ 1 callersMethodSetEventDef
(event string, def *EventDef)
event_builder.go:11
↓ 1 callersMethodSetEvery
(duration time.Duration)
event_def.go:14
↓ 1 callersMethodSetExitToState
(supermachineState string)
transition_callback_def.go:94
↓ 1 callersMethodSetID
(id string)
machine_def.go:24
↓ 1 callersMethodSetInitialState
(state string)
machine_def.go:32
↓ 1 callersMethodSetLabel
(label string)
choice_def.go:22
↓ 1 callersMethodSetMachineDef
(def *MachineDef)
machine.go:7
↓ 1 callersMethodSetMachineDef
SetMachineDef implements MachineBuildable.
machine_impl.go:57
↓ 1 callersMethodSetMachineDef
(def *MachineDef)
machine_builder.go:7
↓ 1 callersMethodSetOn
(events ...string)
event_callback_def.go:41
↓ 1 callersMethodSetSame
()
transition_callback_def.go:84
↓ 1 callersMethodSetStates
(states ...string)
machine_def.go:28
↓ 1 callersMethodSetSubmachine
(state string, submachine *MachineDef)
machine_def.go:36
↓ 1 callersMethodSetUnlessGuard
(guard TransitionGuard)
choice_def.go:30
↓ 1 callersMethodStop
()
examples/cognizant/process.go:93
next →1–100 of 254, ranked by callers