collection

package
v0.0.0-...-9b9f36b Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppCollector

type AppCollector interface {
	Start() error
	Stop()
}

AppCollector represents a collector for application data

func NewMqttAppCollector

func NewMqttAppCollector(ctx log.Interface, mqttBroker string, eui types.AppEUI, key string, storage DataStorage) AppCollector

NewMqttAppCollector instantiates a new AppCollector instance using MQTT

type DataStorage

type DataStorage interface {
	Save(appEUI types.AppEUI, devEUI types.DevEUI, t time.Time, fields map[string]interface{}) error
	Close() error
}

DataStorage provides methods to select and save data

Jump to

Keyboard shortcuts

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