Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Gurpartap/statemachine-go
/ functions
Functions
254 in github.com/Gurpartap/statemachine-go
⨍
Functions
254
◇
Types & classes
66
↓ 91 callers
Method
To
()
transition.go:7
↓ 61 callers
Method
Transition
Transition begins the transition builder, accepting states and guards.
event_builder.go:24
↓ 60 callers
Method
From
()
transition.go:6
↓ 35 callers
Method
Do
(callbackFunc EventCallbackFunc)
event_callback_builder.go:25
↓ 32 callers
Method
Event
()
event.go:6
↓ 18 callers
Method
InitialState
InitialState defines the state that the machine initializes with. Initial state must be defined for every state machine.
machine_builder.go:29
↓ 18 callers
Method
States
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 callers
Method
BeforeTransition
()
machine_builder.go:36
↓ 14 callers
Method
AfterTransition
()
machine_builder.go:38
↓ 14 callers
Method
GetState
()
machine.go:11
↓ 14 callers
Function
newTransitionCallbackToBuilder
newTransitionCallbackToBuilder returns a zero-valued instance of transitionCallbackToBuilder, which implements TransitionCallbackToBuilder.
transition_callback_builder.go:220
↓ 11 callers
Method
If
(guards ...TransitionGuard)
transition_builder.go:39
↓ 10 callers
Method
Fire
(event string)
machine.go:17
↓ 9 callers
Method
Label
(label string)
choice_builder.go:16
↓ 9 callers
Method
SetFromAnyExcept
(exceptStates ...string)
transition_def.go:100
↓ 9 callers
Method
Unless
(guard TransitionGuard)
choice_builder.go:17
↓ 8 callers
Method
FromAny
()
transition_builder.go:17
↓ 8 callers
Method
Submachine
(idPath ...string)
machine.go:15
↓ 6 callers
Method
Any
()
transition_callback_builder.go:42
↓ 6 callers
Method
ID
(id string)
machine_builder.go:21
↓ 6 callers
Method
SetToAnyExcept
(exceptStates ...string)
transition_callback_def.go:88
↓ 6 callers
Method
setCurrentState
(state interface{})
machine_impl.go:313
↓ 5 callers
Method
GetStateMap
()
machine.go:9
↓ 5 callers
Method
SetTo
(state string)
transition_def.go:106
↓ 4 callers
Method
AfterFailure
()
machine_builder.go:39
↓ 4 callers
Method
Build
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 callers
Method
Matches
(matchFrom string)
transition_def.go:73
↓ 4 callers
Method
OnAnyEvent
()
event_callback_builder.go:17
↓ 4 callers
Method
exec
(callback TransitionCallbackFunc, args map[reflect.Type]interface{})
machine_impl.go:427
↓ 3 callers
Method
Build
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 callers
Method
Call
()
internal/dynafunc/dynamic_func.go:32
↓ 3 callers
Method
GetState
GetState implements Machine.
machine_impl.go:110
↓ 3 callers
Function
NewDynamicFunc
(fn interface{}, in map[reflect.Type]interface{})
internal/dynafunc/dynamic_func.go:24
↓ 3 callers
Function
NewEventBuilder
NewEventBuilder returns a zero-valued instance of eventBuilder, which implements EventBuilder.
event_builder.go:34
↓ 3 callers
Function
NewMachineDef
()
machine_def.go:17
↓ 3 callers
Function
execGuard
(guard TransitionGuard, args map[reflect.Type]interface{})
transition_def.go:23
↓ 3 callers
Method
matchTransition
(transitions []*TransitionDef, fromState string)
machine_impl.go:229
↓ 3 callers
Function
newEventCallbackOnBuilder
newEventCallbackOnBuilder returns a zero-valued instance of eventCallbackOnBuilder, which implements EventCallbackOnBuilder.
event_callback_builder.go:62
↓ 3 callers
Function
newEventImpl
()
event_impl.go:8
↓ 3 callers
Function
newTransitionCallbackBuilder
newTransitionCallbackBuilder returns a zero-valued instance of transitionCallbackBuilder, which implements TransitionCallbackBuilder.
transition_callback_builder.go:83
↓ 3 callers
Function
newTransitionCallbackFromBuilder
newTransitionCallbackFromBuilder returns a zero-valued instance of transitionCallbackFromBuilder, which implements TransitionCallbackFromBuilder.
transition_callback_builder.go:132
↓ 3 callers
Function
newTransitionFromBuilder
newTransitionFromBuilder returns a zero-valued instance of TransitionFromBuilder, which implements TransitionFromBuilder.
transition_builder.go:83
↓ 3 callers
Function
newTransitionImpl
(from, to string)
transition_impl.go:8
↓ 2 callers
Method
AddCallbackFunc
(callbackFunc EventCallbackFunc)
event_callback_def.go:53
↓ 2 callers
Method
AddEvent
(event string, eventDef *EventDef)
machine_def.go:40
↓ 2 callers
Method
AddIfGuard
(guards ...TransitionGuard)
transition_def.go:110
↓ 2 callers
Method
AddUnlessGuard
(guards ...TransitionGuard)
transition_def.go:117
↓ 2 callers
Method
AroundTransition
()
machine_builder.go:37
↓ 2 callers
Method
Build
(machineBuilderFn func(machineBuilder MachineBuilder))
machine.go:6
↓ 2 callers
Method
Event
Event provides the ability to define possible transitions for an event.
machine_builder.go:34
↓ 2 callers
Method
Fire
Fire implements Machine.
machine_impl.go:139
↓ 2 callers
Method
GetIsAutoStartOn
()
example_test.go:21
↓ 2 callers
Method
GetIsProcessRunning
()
example_test.go:25
↓ 2 callers
Method
Restart
()
example_test.go:31
↓ 2 callers
Method
Send
(signal Message)
machine.go:19
↓ 2 callers
Method
SetFrom
(states ...string)
transition_def.go:94
↓ 2 callers
Method
SetOnAnyEventExcept
(exceptEvents ...string)
event_callback_def.go:47
↓ 2 callers
Method
SetOnFalse
(eventBuilderFn func(eventBuilder EventBuilder))
choice_def.go:43
↓ 2 callers
Method
SetOnTrue
(eventBuilderFn func(eventBuilder EventBuilder))
choice_def.go:34
↓ 2 callers
Method
Start
()
example_test.go:29
↓ 2 callers
Method
Stop
()
example_test.go:30
↓ 2 callers
Method
ToAny
()
transition_callback_builder.go:52
↓ 2 callers
Function
assertGuardKind
(guard TransitionGuard)
transition_def.go:124
↓ 2 callers
Function
newTransitionAndGuardBuilder
newTransitionAndGuardBuilder returns a zero-valued instance of TransitionAndGuardBuilder, which implements TransitionAndGuardBuilder.
transition_builder.go:153
↓ 2 callers
Function
newTransitionToBuilder
newTransitionToBuilder returns a zero-valued instance of TransitionToBuilder, which implements TransitionToBuilder.
transition_builder.go:128
↓ 1 callers
Method
AddAfterCallback
(CallbackDef *TransitionCallbackDef)
machine_def.go:52
↓ 1 callers
Method
AddAroundCallback
(CallbackDef *TransitionCallbackDef)
machine_def.go:48
↓ 1 callers
Method
AddBeforeCallback
(CallbackDef *TransitionCallbackDef)
machine_def.go:44
↓ 1 callers
Method
AddFailureCallback
(CallbackDef *EventCallbackDef)
machine_def.go:56
↓ 1 callers
Method
AddTransition
(transitionDef *TransitionDef)
event_def.go:22
↓ 1 callers
Method
Choice
TODO: Assert that Choice(...) and Transition() are not used together.
event_builder.go:21
↓ 1 callers
Method
IsAllowed
(fromState string, machine Machine)
transition_def.go:42
↓ 1 callers
Method
IsState
IsState implements Machine.
machine_impl.go:123
↓ 1 callers
Method
MatchesEvent
(event string)
event_callback_def.go:21
↓ 1 callers
Function
NewEditorMode
()
examples/texteditor/editor_mode.go:14
↓ 1 callers
Function
NewMachine
NewMachine returns a zero-valued instance of machine, which implements Machine.
machine_impl.go:32
↓ 1 callers
Function
NewMachineBuilder
NewMachineBuilder returns a zero-valued instance of machineBuilder, which implements MachineBuilder.
machine_builder.go:44
↓ 1 callers
Function
NewProcess
()
examples/cognizant/process.go:22
↓ 1 callers
Method
OnFalse
(eventBuilderFn func(eventBuilder EventBuilder))
choice_builder.go:19
↓ 1 callers
Method
OnTrue
(eventBuilderFn func(eventBuilder EventBuilder))
choice_builder.go:18
↓ 1 callers
Method
SetAutoStartOn
()
examples/cognizant/process.go:76
↓ 1 callers
Method
SetChoice
(choiceDef *ChoiceDef)
event_def.go:18
↓ 1 callers
Method
SetCondition
(condition ChoiceCondition)
choice_def.go:26
↓ 1 callers
Method
SetCurrentState
(state interface{})
machine.go:12
↓ 1 callers
Method
SetCurrentState
SetCurrentState implements Machine.
machine_impl.go:115
↓ 1 callers
Method
SetEventDef
(event string, def *EventDef)
event_builder.go:11
↓ 1 callers
Method
SetEvery
(duration time.Duration)
event_def.go:14
↓ 1 callers
Method
SetExitToState
(supermachineState string)
transition_callback_def.go:94
↓ 1 callers
Method
SetID
(id string)
machine_def.go:24
↓ 1 callers
Method
SetInitialState
(state string)
machine_def.go:32
↓ 1 callers
Method
SetLabel
(label string)
choice_def.go:22
↓ 1 callers
Method
SetMachineDef
(def *MachineDef)
machine.go:7
↓ 1 callers
Method
SetMachineDef
SetMachineDef implements MachineBuildable.
machine_impl.go:57
↓ 1 callers
Method
SetMachineDef
(def *MachineDef)
machine_builder.go:7
↓ 1 callers
Method
SetOn
(events ...string)
event_callback_def.go:41
↓ 1 callers
Method
SetSame
()
transition_callback_def.go:84
↓ 1 callers
Method
SetStates
(states ...string)
machine_def.go:28
↓ 1 callers
Method
SetSubmachine
(state string, submachine *MachineDef)
machine_def.go:36
↓ 1 callers
Method
SetUnlessGuard
(guard TransitionGuard)
choice_def.go:30
↓ 1 callers
Method
Stop
()
examples/cognizant/process.go:93
next →
1–100 of 254, ranked by callers