Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FSM ¶
type FSM struct {
// contains filtered or unexported fields
}
func (*FSM) Add ¶
func (s *FSM) Add(state StateHandler) error
func (*FSM) CurrentStateHandler ¶
func (s *FSM) CurrentStateHandler() StateHandler
func (*FSM) ForceState ¶
type StateFnHandler ¶ added in v1.2.20
type StateFnHandler struct { StateFn int EnterFn func(fsm *FSM) LeaveFn func(fsm *FSM) HandleFn func(fsm *FSM, v ...interface{}) }
func (*StateFnHandler) Enter ¶ added in v1.2.20
func (s *StateFnHandler) Enter(fsm *FSM)
func (*StateFnHandler) Handle ¶ added in v1.2.20
func (s *StateFnHandler) Handle(fsm *FSM, v ...interface{})
func (*StateFnHandler) Leave ¶ added in v1.2.20
func (s *StateFnHandler) Leave(fsm *FSM)
func (*StateFnHandler) State ¶ added in v1.2.20
func (s *StateFnHandler) State() int
Click to show internal directories.
Click to hide internal directories.