mock

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Integration

type Integration struct {
	SendDataUpChan               chan pb.UplinkEvent
	SendJoinNotificationChan     chan pb.JoinEvent
	SendACKNotificationChan      chan pb.AckEvent
	SendErrorNotificationChan    chan pb.ErrorEvent
	DataDownPayloadChan          chan integration.DataDownPayload
	SendStatusNotificationChan   chan pb.StatusEvent
	SendLocationNotificationChan chan pb.LocationEvent
	SendTxAckNotificationChan    chan pb.TxAckEvent
}

Integration implements a mock integration.

func New

func New() *Integration

New creates a new mock integration.

func (*Integration) Close

func (i *Integration) Close() error

Close method.

func (*Integration) DataDownChan

func (i *Integration) DataDownChan() chan integration.DataDownPayload

DataDownChan method.

func (*Integration) SendACKNotification

func (i *Integration) SendACKNotification(ctx context.Context, vars map[string]string, payload pb.AckEvent) error

SendACKNotification method.

func (*Integration) SendDataUp

func (i *Integration) SendDataUp(ctx context.Context, vars map[string]string, payload pb.UplinkEvent) error

SendDataUp method.

func (*Integration) SendErrorNotification

func (i *Integration) SendErrorNotification(ctx context.Context, vars map[string]string, payload pb.ErrorEvent) error

SendErrorNotification method.

func (*Integration) SendJoinNotification

func (i *Integration) SendJoinNotification(ctx context.Context, vars map[string]string, payload pb.JoinEvent) error

SendJoinNotification Method.

func (*Integration) SendLocationNotification

func (i *Integration) SendLocationNotification(ctx context.Context, vars map[string]string, payload pb.LocationEvent) error

SendLocationNotification method.

func (*Integration) SendStatusNotification

func (i *Integration) SendStatusNotification(ctx context.Context, vars map[string]string, payload pb.StatusEvent) error

SendStatusNotification method.

func (*Integration) SendTxAckNotification

func (i *Integration) SendTxAckNotification(ctx context.Context, vars map[string]string, payload pb.TxAckEvent) error

SendTxAckNotification method.

Jump to

Keyboard shortcuts

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