hat

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HATInterface

type HATInterface interface {
	SetChannels(e chan<- datatype.HatEvent, s <-chan *datatype.DisplayMessage)
	Start()
}

type Hat

type Hat struct {
	// contains filtered or unexported fields
}

func (*Hat) SetChannels

func (h *Hat) SetChannels(e chan<- datatype.HatEvent, s <-chan *datatype.DisplayMessage)

func (*Hat) Start

func (h *Hat) Start()

type HatMock

type HatMock struct {
	// contains filtered or unexported fields
}

func NewMock

func NewMock() *HatMock

func (*HatMock) Close

func (hm *HatMock) Close()

func (*HatMock) ConsumeDisplayMessages

func (hm *HatMock) ConsumeDisplayMessages()

func (*HatMock) GetLastMsg

func (hm *HatMock) GetLastMsg() *datatype.DisplayMessage

func (*HatMock) GoDown

func (hm *HatMock) GoDown()

func (*HatMock) GoLeft

func (hm *HatMock) GoLeft()

func (*HatMock) GoRight

func (hm *HatMock) GoRight()

func (*HatMock) GoUp

func (hm *HatMock) GoUp()

func (*HatMock) Press

func (hm *HatMock) Press()

func (*HatMock) SetChannels

func (hm *HatMock) SetChannels(e chan<- datatype.HatEvent, s <-chan *datatype.DisplayMessage)

func (*HatMock) Start

func (hm *HatMock) Start()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL