Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CalibrationClient ¶
type CalibrationClient struct {
// contains filtered or unexported fields
}
CalibrationClient can be used to generate the dart matrix
func NewCalibrationClient ¶
func NewCalibrationClient(board string) *CalibrationClient
NewCalibrationClient prepare a client for the calibration
func (*CalibrationClient) Consume ¶
func (calibration *CalibrationClient) Consume(event hardware.InputEvent)
Consume handles next input
func (*CalibrationClient) Prepare ¶
func (calibration *CalibrationClient) Prepare() error
Prepare prints the first output
func (*CalibrationClient) Shutdown ¶
func (calibration *CalibrationClient) Shutdown()
Shutdown prints shutdown message
type DartClient ¶
type DartClient struct {
// contains filtered or unexported fields
}
DartClient the API client
func NewClient ¶
func NewClient(endpointURL string, board string) *DartClient
NewClient the client constructor
func (*DartClient) Shutdown ¶
func (client *DartClient) Shutdown()
Shutdown releases the resources held by the client
type Failure ¶
type Failure struct { Error string `json:"error,omitempty"` Status string `json:"status,omitempty"` }
Failure is structure for failure response
type GameResponse ¶
GameResponse is container structure for GameState
type MockedClient ¶
type MockedClient struct { }
MockedClient testing purpose
func NewMockedClient ¶
func NewMockedClient() *MockedClient
NewMockedClient MockedClient constructor
func (*MockedClient) Consume ¶
func (mock *MockedClient) Consume(event hardware.InputEvent)
Consume mock implem
type WrappedClient ¶
type WrappedClient struct { CurrentGameID int LatestGameState GameState // contains filtered or unexported fields }
WrappedClient is structure for manipulate Client
func NewWrappedClient ¶
func NewWrappedClient(endpointURL string, board string) *WrappedClient
NewWrappedClient is WrappedClient constructor
func (*WrappedClient) Consume ¶
func (wrapped *WrappedClient) Consume(event hardware.InputEvent)
Consume is
Click to show internal directories.
Click to hide internal directories.