MCPcopy Index your code
hub / github.com/Gurpartap/statemachine-go

github.com/Gurpartap/statemachine-go @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
320 symbols 757 edges 31 files 79 documented · 25%
What it actually does AI analysis from the code graph — generated when you open this
loading…

Extension points exported contracts — how you extend this code

TransitionExceptFromBuilder (Interface)
TransitionExceptFromBuilder inherits from TransitionFromBuilder and provides the ability to define the `to` state of the [6 …
transition_builder.go
Event (Interface)
Event provides methods for accessing useful information about the active event. [2 implementers]
event.go
EventCallbackOnBuilder (Interface)
EventCallbackOnBuilder inherits from EventCallbackBuilder (or EventCallbackExceptFromBuilder) and provides the ability t [2 …
event_callback_builder.go
Transition (Interface)
Transition provides methods for accessing useful information about the active transition. [2 implementers]
transition.go
ChoiceTrueBuilder (Interface)
ChoiceTrueBuilder inherits from ChoiceBuilder [2 implementers]
choice_builder.go
EventBuildable (Interface)
EventBuildable implementation is able to consume the result of building features from EventBuilder. EventBuildable is ob [2 …
event_builder.go
TransitionCallbackExceptFromBuilder (Interface)
TransitionCallbackExceptFromBuilder inherits `from` states from TransitionCallbackBuilder and provides the ability to de [2 …
transition_callback_builder.go
Machine (Interface)
Machine provides a public interface to the state machine implementation. It provides methods to build and access feature [1 …
machine.go

Core symbols most depended-on inside this repo

To
called by 91
transition.go
Transition
called by 61
event_builder.go
From
called by 60
transition.go
Do
called by 35
event_callback_builder.go
Event
called by 32
event.go
States
called by 18
machine_builder.go
InitialState
called by 18
machine_builder.go
BeforeTransition
called by 15
machine_builder.go

Shape

Method 212
Function 42
Struct 38
Interface 27
TypeAlias 1

Languages

Go100%

Modules by API surface

transition_callback_builder.go56 symbols
transition_builder.go38 symbols
machine_builder.go27 symbols
choice_builder.go22 symbols
machine_impl.go21 symbols
examples/cognizant/process.go15 symbols
event_callback_builder.go15 symbols
event_builder.go13 symbols
transition_def.go11 symbols
transition_callback_def.go11 symbols
machine_def.go11 symbols
machine.go11 symbols

For agents

$ claude mcp add statemachine-go \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact