Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventType ¶
type EventType string
EventType represents an extensible event type in the state machine.
type Machine ¶
type Machine struct {
// OnTransition called when transitioning from current StateType to the nextStateType
OnTransition func(curr, next StateType)
// contains filtered or unexported fields
}
Machine represents the state machine.
Click to show internal directories.
Click to hide internal directories.