Versions in this module Expand all Collapse all v1 v1.0.2 Apr 4, 2026 v1.0.1 Apr 4, 2026 Changes in this version + var ErrInvalidHandlerArguments = errors.New("invalid handler arguments") + var ErrInvalidHandlerOutput = errors.New("invalid handler output") + var ErrInvalidStatus = errors.New("invalid status") + var ErrNotFoundHandler = errors.New("not found handler") + func AddState[T any](sm *StateMachine, s *T) + func GetState[T any](sm *StateMachine) *T + type EventHandler struct + func (eh *EventHandler) Call(ctx context.Context, e any) error + type StateMachine struct + Status StateMachineStatus + func NewStateMachine() *StateMachine + func (sm *StateMachine) Pub(ctx context.Context, e any) error + func (sm *StateMachine) When(handler any, status ...StateMachineStatus) + type StateMachineStatus string