testhandler

package
v2.0.0-alpha.1+incompa... Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2018 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
}

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) 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