eventlog

package
v2.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Uplink   = "uplink"
	ACK      = "ack"
	Join     = "join"
	Error    = "error"
	Status   = "status"
	Location = "location"
)

Event types.

Variables

This section is empty.

Functions

func GetEventLogForDevice

func GetEventLogForDevice(ctx context.Context, devEUI lorawan.EUI64, eventsChan chan EventLog) error

GetEventLogForDevice subscribes to the device events for the given DevEUI and sends this to the given channel.

func LogEventForDevice

func LogEventForDevice(devEUI lorawan.EUI64, el EventLog) error

LogEventForDevice logs an event for the given device.

Types

type EventLog

type EventLog struct {
	Type    string
	Payload interface{}
}

EventLog contains an event log.

Jump to

Keyboard shortcuts

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