Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyPressEvent ¶
type KeyPressEvent struct {
// contains filtered or unexported fields
}
KeyPressEvent represents an keyboard entered event
func NewKeyPressEvent ¶
func NewKeyPressEvent(text string) *KeyPressEvent
NewKeyPressEvent constructor
type S0State ¶
type S0State struct {
hsm.BaseState
}
S0State represents State S0
func (*S0State) EventHandler ¶
func (s *S0State) EventHandler(event hsm.Event) hsm.Transition
EventHandler returns a transition associated with the event or NilTransition if the event is not handled
type S11State ¶
type S11State struct {
hsm.BaseState
}
S11State represents State S11
func NewS11State ¶
NewS11State constructor
func (*S11State) EventHandler ¶
func (s *S11State) EventHandler(event hsm.Event) hsm.Transition
EventHandler returns a transition associated with the event or NilTransition if the event is not handled
type S1State ¶
type S1State struct {
hsm.BaseState
}
S1State represents State S1
func NewS1State ¶
NewS1State constructor
func (*S1State) EventHandler ¶
func (s *S1State) EventHandler(event hsm.Event) hsm.Transition
EventHandler returns a transition associated with the event or NilTransition if the event is not handled
type S211State ¶
type S211State struct {
hsm.BaseState
}
S211State represents State S211
func NewS211State ¶
NewS211State constructor
func (*S211State) EventHandler ¶
func (s *S211State) EventHandler(event hsm.Event) hsm.Transition
EventHandler returns a transition associated with the event or NilTransition if the event is not handled
type S21State ¶
type S21State struct {
hsm.BaseState
}
S21State represents State S21
func NewS21State ¶
NewS21State constructor
func (*S21State) EventHandler ¶
func (s *S21State) EventHandler(event hsm.Event) hsm.Transition
EventHandler returns a transition associated with the event or NilTransition if the event is not handled
type S2State ¶
type S2State struct {
hsm.BaseState
}
S2State represents State S2
func NewS2State ¶
NewS2State constructor
func (*S2State) EventHandler ¶
func (s *S2State) EventHandler(event hsm.Event) hsm.Transition
EventHandler returns a transition associated with the event or NilTransition if the event is not handled