Documentation ¶
Index ¶
Constants ¶
View Source
const ( Default StateType = "" NoOp EventType = "NoOp" )
Variables ¶
View Source
var ErrEventRejected = errors.New("event rejected")
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action interface {
Execute(eventCtx EventContext) EventType
}
type EventContext ¶
type EventContext interface{}
type StateMachine ¶
type StateMachine struct { Previous StateType Current StateType States States // contains filtered or unexported fields }
func (*StateMachine) SendEvent ¶
func (s *StateMachine) SendEvent(event EventType, eventCtx EventContext) error
Click to show internal directories.
Click to hide internal directories.