Documentation ¶ Index ¶ Variables func NewDotOutput(w io.Writer, dir string) error type FSM func NewFSM(funcs map[State]StateFunc, initState, closeState State) *FSM func (f *FSM) Loop() error func (f *FSM) Shutdown() func (f *FSM) SignalHandling(signals ...os.Signal) type State type StateFunc Constants ¶ This section is empty. Variables ¶ View Source var ( ErrUnrecognizedState = errors.New("unrecognized state") ) Functions ¶ func NewDotOutput ¶ func NewDotOutput(w io.Writer, dir string) error Types ¶ type FSM ¶ type FSM struct { // contains filtered or unexported fields } func NewFSM ¶ func NewFSM(funcs map[State]StateFunc, initState, closeState State) *FSM func (*FSM) Loop ¶ func (f *FSM) Loop() error func (*FSM) Shutdown ¶ added in v0.14.0 func (f *FSM) Shutdown() func (*FSM) SignalHandling ¶ func (f *FSM) SignalHandling(signals ...os.Signal) type State ¶ type State int const ( UnknownState State = -255 WaitState State = -254 CloseState State = -253 ) type StateFunc ¶ type StateFunc func() (State, error) Source Files ¶ View all Source files debug.go fsm.go Click to show internal directories. Click to hide internal directories.