distributor

package
v0.0.0-...-96f3fa0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package distributor is used to distribute messages through the ApplicationBackend.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Distributor

type Distributor interface {
	InputUplink(components.MessageUplinkI) (components.MessageUplinkI, error)
	InputDownlink(components.MessageDownLink)
	InputNewSensors(sensors []components.Sensor, devEUI string)
	DeleteSensors(sensors []components.Sensor, devEUI string)
}

Distributor is used to distribute messages through the system. When it receives a Uplink message, it transfers that to the restUplinkConnector and the DatabaseConnector. When receiving a Downlink message, it transfers that to the DatabaseConnector and the mqttDownlink Client. When the header comes in, it also sends messages to the restUplink that Sensors has been either removed in the node header.

func New

func New() Distributor

New Creates a new Distributor object.

Jump to

Keyboard shortcuts

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