mqlux

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Time     time.Time
	Topic    string
	Payload  []byte
	Retained bool
}

A Message stores data from incomming messages (typical MQTT messages).

type Parser

type Parser func(msg Message, measurement string, tags map[string]string) ([]Record, error)

Parser converts one Message into zero or more Records. A parser can set different Measurement and Tags for each Record (e.g. based on the message or the parser configuration).

type Record

type Record struct {
	Measurement string
	Tags        map[string]string
	Value       interface{}
}

A Record stores data for outgoing records (typical InfluxDB records).

type Writer

type Writer func([]Record) error

Writer writes all records.

Jump to

Keyboard shortcuts

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