Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Gurpartap/statemachine-go
/ types & classes
Types & classes
66 in github.com/Gurpartap/statemachine-go
⨍
Functions
254
◇
Types & classes
66
Interface
ChoiceBuilder
ChoiceBuilder provides the ability to define the conditions and result handling of the choice definition.
choice_builder.go:15
Interface
ChoiceCondition
ChoiceCondition may accept Transition object as input, and it must return a bool type. Valid ChoiceCondition types: bool func() bool func(transiti
choice_builder.go:11
Struct
ChoiceConditionDef
choice_def.go:9
Struct
ChoiceDef
choice_def.go:15
Interface
ChoiceFalseBuilder
ChoiceFalseBuilder inherits from ChoiceBuilder
choice_builder.go:28
Interface
ChoiceTrueBuilder
ChoiceTrueBuilder inherits from ChoiceBuilder
choice_builder.go:23
Struct
DynamicFunc
Usage: args := make(map[reflect.Type]interface{}) args[reflect.TypeOf(new(error))] = errors.New("some error occurred") args[reflect.TypeOf(new(Transi
internal/dynafunc/dynamic_func.go:18
Struct
EditorMode
examples/texteditor/editor_mode.go:10
Interface
Event
Event provides methods for accessing useful information about the active event.
event.go:5
Interface
EventBuildable
EventBuildable implementation is able to consume the result of building features from EventBuilder. EventBuildable is oblivious to Event or it's imple
event_builder.go:10
Interface
EventBuilder
EventBuilder provides the ability to define an event along with its transitions and their guards. EventBuilder is oblivious to Event or it's implement
event_builder.go:17
Interface
EventCallbackBuilder
EventCallbackBuilder provides the ability to define the `on` event(s) of the event callback matcher.
event_callback_builder.go:15
Struct
EventCallbackDef
event_callback_def.go:13
Interface
EventCallbackFunc
EventCallbackFunc is a func with dynamic args. Any callback func of this type may accept a Transition object as input. Return values will be ignored.
event_callback_builder.go:11
Struct
EventCallbackFuncDef
event_callback_def.go:8
Interface
EventCallbackOnBuilder
EventCallbackOnBuilder inherits from EventCallbackBuilder (or EventCallbackExceptFromBuilder) and provides the ability to define the transition callba
event_callback_builder.go:24
Struct
EventDef
event_def.go:7
Struct
ExampleProcess
example_test.go:14
Interface
Machine
Machine provides a public interface to the state machine implementation. It provides methods to build and access features of the state machine.
machine.go:5
Interface
MachineBuildable
MachineBuildable implementation is able to consume the result of building features from dsl.MachineBuilder. MachineBuildable is oblivious to Machine o
machine_builder.go:6
Interface
MachineBuilder
MachineBuilder provides the ability to define all features of the state machine, including states, events, event transitions, and transition callbacks
machine_builder.go:13
Struct
MachineDef
machine_def.go:3
Interface
Message
message.go:3
Struct
OverrideState
message.go:18
Struct
Process
example_turnstile_test.go:7
Struct
Process
examples/cognizant/process.go:14
TypeAlias
StateMap
machine.go:28
Interface
Transition
Transition provides methods for accessing useful information about the active transition.
transition.go:5
Interface
TransitionAndGuardBuilder
TransitionAndGuardBuilder inherits from TransitionToBuilder and provides the ability to define additional guard condition funcs for the transition.
transition_builder.go:45
Interface
TransitionBuilder
TransitionBuilder provides the ability to define the `from` state(s) of the transition matcher.
transition_builder.go:15
Interface
TransitionCallbackBuilder
TransitionCallbackBuilder provides the ability to define the `from` state(s) of the transition callback matcher.
transition_callback_builder.go:36
Struct
TransitionCallbackDef
transition_callback_def.go:14
Interface
TransitionCallbackDoBuilder
transition_callback_builder.go:76
Interface
TransitionCallbackExceptFromBuilder
TransitionCallbackExceptFromBuilder inherits `from` states from TransitionCallbackBuilder and provides the ability to define the `to` states of the tr
transition_callback_builder.go:60
Interface
TransitionCallbackFromBuilder
TransitionCallbackFromBuilder inherits `from` states from TransitionCallbackBuilder and provides the ability to define the `except from` and `to` stat
transition_callback_builder.go:48
Interface
TransitionCallbackFunc
TransitionCallbackFunc is a func with dynamic args. Any callback func of this type may accept a Machine and/or Transition object as inputs. Return val
transition_callback_builder.go:32
Struct
TransitionCallbackFuncDef
transition_callback_def.go:8
Interface
TransitionCallbackToBuilder
TransitionCallbackToBuilder inherits from TransitionCallbackBuilder (or TransitionCallbackExceptFromBuilder) and provides the ability to define the tr
transition_callback_builder.go:71
Struct
TransitionDef
transition_def.go:15
Interface
TransitionExceptFromBuilder
TransitionExceptFromBuilder inherits from TransitionFromBuilder and provides the ability to define the `to` state of the transition matcher.
transition_builder.go:31
Interface
TransitionFromBuilder
TransitionFromBuilder inherits `from` states from TransitionBuilder and provides the ability to define the `to` state as well as the `except from` sta
transition_builder.go:24
Interface
TransitionGuard
TransitionGuard may accept Transition object as input, and it must return a bool type. Valid TransitionGuard types: bool func() bool func(transiti
transition_builder.go:11
Struct
TransitionGuardDef
transition_def.go:9
Interface
TransitionToBuilder
TransitionToBuilder inherits from TransitionFromBuilder (or TransitionExceptFromBuilder) and provides the ability to define the guard condition funcs
transition_builder.go:38
Struct
TriggerEvent
message.go:10
Struct
Turnstile
examples/turnstile/main.go:9
Struct
choiceFalseBuilder
choiceFalseBuilder implements ChoiceFalseBuilder
choice_builder.go:95
Struct
choiceTrueBuilder
choiceTrueBuilder implements ChoiceTrueBuilder
choice_builder.go:76
Struct
chosenBuilder
chosenBuilder implements ChoiceBuilder
choice_builder.go:41
Struct
eventBuilder
eventBuilder implements EventBuilder.
event_builder.go:42
Struct
eventCallbackBuilder
eventCallbackBuilder implements EventCallbackBuilder
event_callback_builder.go:38
Struct
eventCallbackOnBuilder
eventCallbackOnBuilder implements EventCallbackOnBuilder
event_callback_builder.go:69
Struct
eventImpl
event_impl.go:3
Struct
machineBuilder
machineBuilder implements MachineBuilder.
machine_builder.go:51
Struct
machineImpl
machine_impl.go:14
Struct
transitionAndGuardBuilder
transitionAndGuardBuilder implements TransitionAndGuardBuilder
transition_builder.go:161
Struct
transitionBuilder
transitionBuilder implements TransitionBuilder
transition_builder.go:60
Struct
transitionCallbackBuilder
transitionCallbackBuilder implements TransitionCallbackBuilder
transition_callback_builder.go:90
Struct
transitionCallbackDoBuilder
transitionCallbackDoBuilder implements TransitionCallbackDoBuilder
transition_callback_builder.go:252
Struct
transitionCallbackExceptFromBuilder
transitionCallbackExceptFromBuilder implements TransitionCallbackExceptFromBuilder
transition_callback_builder.go:186
Struct
transitionCallbackFromBuilder
transitionCallbackFromBuilder implements TransitionCallbackFromBuilder
transition_callback_builder.go:139
Struct
transitionCallbackToBuilder
transitionCallbackToBuilder implements TransitionCallbackToBuilder
transition_callback_builder.go:227
Struct
transitionExceptFromBuilder
transitionExceptFromBuilder implements TransitionExceptFromBuilder
transition_builder.go:115
Struct
transitionFromBuilder
transitionFromBuilder implements TransitionFromBuilder
transition_builder.go:90
Struct
transitionImpl
transition_impl.go:3
Struct
transitionToBuilder
transitionToBuilder implements TransitionToBuilder
transition_builder.go:135