testhandler

package
v2.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestHandler

type TestHandler struct {
	SendDataUpChan               chan handler.DataUpPayload
	SendJoinNotificationChan     chan handler.JoinNotification
	SendACKNotificationChan      chan handler.ACKNotification
	SendErrorNotificationChan    chan handler.ErrorNotification
	DataDownPayloadChan          chan handler.DataDownPayload
	SendStatusNotificationChan   chan handler.StatusNotification
	SendLocationNotificationChan chan handler.LocationNotification
}

TestHandler implements a Handler for testing.

func NewTestHandler

func NewTestHandler() *TestHandler

NewTestHandler returns a TestHandler.

func (*TestHandler) Close

func (t *TestHandler) Close() error

Close method.

func (*TestHandler) DataDownChan

func (t *TestHandler) DataDownChan() chan handler.DataDownPayload

DataDownChan method.

func (*TestHandler) SendACKNotification

func (t *TestHandler) SendACKNotification(payload handler.ACKNotification) error

SendACKNotification method.

func (*TestHandler) SendDataUp

func (t *TestHandler) SendDataUp(payload handler.DataUpPayload) error

SendDataUp method.

func (*TestHandler) SendErrorNotification

func (t *TestHandler) SendErrorNotification(payload handler.ErrorNotification) error

SendErrorNotification method.

func (*TestHandler) SendJoinNotification

func (t *TestHandler) SendJoinNotification(payload handler.JoinNotification) error

SendJoinNotification Method.

func (*TestHandler) SendLocationNotification

func (t *TestHandler) SendLocationNotification(payload handler.LocationNotification) error

SendLocationNotification method.

func (*TestHandler) SendStatusNotification

func (t *TestHandler) SendStatusNotification(payload handler.StatusNotification) error

SendStatusNotification method.

Jump to

Keyboard shortcuts

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