Versions in this module Expand all Collapse all v0 v0.0.9 Sep 23, 2022 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()