Documentation ¶
Index ¶
- type Args
- type Event
- type FSM
- func (fsm *FSM) AddState(state State, callback HandleFunc)
- func (fsm *FSM) AllStates() (states []State)
- func (fsm *FSM) Check(state State) bool
- func (fsm *FSM) Current() State
- func (fsm *FSM) PrintStates()
- func (fsm *FSM) SendEvent(event Event, args Args) (err error)
- func (fsm *FSM) Transfer(trans State, args Args) error
- type FuncTable
- type HandleFunc
- type State
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) AddState ¶
func (fsm *FSM) AddState(state State, callback HandleFunc)
func (*FSM) PrintStates ¶
func (fsm *FSM) PrintStates()
type FuncTable ¶
type FuncTable map[State]HandleFunc
func NewFuncTable ¶
func NewFuncTable() (table FuncTable)
Click to show internal directories.
Click to hide internal directories.