Documentation ¶
Index ¶
- type TestHandler
- func (t *TestHandler) Close() error
- func (t *TestHandler) DataDownChan() chan handler.DataDownPayload
- func (t *TestHandler) SendACKNotification(payload handler.ACKNotification) error
- func (t *TestHandler) SendDataUp(payload handler.DataUpPayload) error
- func (t *TestHandler) SendErrorNotification(payload handler.ErrorNotification) error
- func (t *TestHandler) SendJoinNotification(payload handler.JoinNotification) error
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 }
TestHandler implements a Handler for testing.
func NewTestHandler ¶
func NewTestHandler() *TestHandler
func (*TestHandler) Close ¶
func (t *TestHandler) Close() error
func (*TestHandler) DataDownChan ¶
func (t *TestHandler) DataDownChan() chan handler.DataDownPayload
func (*TestHandler) SendACKNotification ¶
func (t *TestHandler) SendACKNotification(payload handler.ACKNotification) error
func (*TestHandler) SendDataUp ¶
func (t *TestHandler) SendDataUp(payload handler.DataUpPayload) error
func (*TestHandler) SendErrorNotification ¶
func (t *TestHandler) SendErrorNotification(payload handler.ErrorNotification) error
func (*TestHandler) SendJoinNotification ¶
func (t *TestHandler) SendJoinNotification(payload handler.JoinNotification) error
Click to show internal directories.
Click to hide internal directories.