Versions in this module Expand all Collapse all v1 v1.0.0 Nov 14, 2024 Changes in this version + type StateDirection int64 + const Backward + const Forward + const Stop + type StateMachine struct + func NewStateMachine(states []string) (*StateMachine, error) + func (sm *StateMachine) CurrentState() string + func (sm *StateMachine) NextState(direction StateDirection) + func (sm *StateMachine) Running() bool + func (sm *StateMachine) Stop()