Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleInput ¶
func HandleInput(e simple_button.EventPayload)
func HandleLocationEvent ¶
func HandleLocationEvent(e interface{})
Types ¶
type AreaMode ¶
type AreaMode struct {
// contains filtered or unexported fields
}
func (*AreaMode) HandleInput ¶
func (a *AreaMode) HandleInput(e simple_button.EventPayload)
func (*AreaMode) HandleLocationEvent ¶
func (a *AreaMode) HandleLocationEvent(e interface{})
func (*AreaMode) RegisterType ¶
type LocationData ¶
type Mode ¶
type Mode uint8
func Init ¶
func Init() (Mode, chan LocationData, chan gpio.OutputPayload)
type ModeHandler ¶
type ModeHandler interface { HandleLocationEvent(e interface{}) HandleInput(e simple_button.EventPayload) Activate() }
func NewAreaMode ¶
func NewAreaMode() ModeHandler
func NewPoiMode ¶
func NewPoiMode() ModeHandler
type PoiMode ¶
type PoiMode struct {
// contains filtered or unexported fields
}
func (*PoiMode) HandleInput ¶
func (p *PoiMode) HandleInput(e simple_button.EventPayload)
func (*PoiMode) HandleLocationEvent ¶
func (p *PoiMode) HandleLocationEvent(e interface{})
Click to show internal directories.
Click to hide internal directories.