eventlog

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Uplink = "uplink"
	ACK    = "ack"
	Join   = "join"
	Error  = "error"
)

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