Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var LastActionIDExecuted = 0
LastActionIDExecuted helps with testing
Functions ¶
This section is empty.
Types ¶
type KeyPressEvent ¶
type KeyPressEvent struct {
// contains filtered or unexported fields
}
KeyPressEvent represents a keyboard entered event
func NewKeyPressEvent ¶
func NewKeyPressEvent(text string) *KeyPressEvent
NewKeyPressEvent constructor
type StateA ¶
type StateA struct { hsm.BaseState // contains filtered or unexported fields }
StateA represents State A
func (*StateA) EventHandler ¶
func (s *StateA) EventHandler(event hsm.Event) hsm.Transition
EventHandler returns the transition associated with the event or nil if this state does not handle the event
type StateB ¶
type StateB struct {
hsm.BaseState
}
StateB represents State B
func (*StateB) EventHandler ¶
func (s *StateB) EventHandler(event hsm.Event) hsm.Transition
EventHandler returns the transition associated with the event or nil if this state does not handle the event
type StateC ¶
type StateC struct {
hsm.BaseState
}
StateC represents State C
func (*StateC) EventHandler ¶
func (s *StateC) EventHandler(event hsm.Event) hsm.Transition
EventHandler returns the transition associated with the event or nil if this state does not handle the event
type StateD ¶
type StateD struct {
hsm.BaseState
}
StateD represents State D
func (*StateD) EventHandler ¶
func (s *StateD) EventHandler(event hsm.Event) hsm.Transition
EventHandler returns the transition associated with the event or nil if this state does not handle the event