Documentation
¶
Overview ¶
Package parser is responsible for interpreting raw byte data into Containers. Each parser is disconnected from how the byte data is received and what happens with it afterwards.
The simplest parser is probably the JSON parser, which simply assumes the byte slice is a JSON representation of a Skogul Container.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InfluxDB ¶ added in v0.6.0
type InfluxDB struct{}
InfluxDB provides a byte sequence parser for the InfluxDB Line Protocol https://docs.influxdata.com/influxdb/v1.7/write_protocols/line_protocol_tutorial/
type InfluxDBLineProtocol ¶ added in v0.6.0
type InfluxDBLineProtocol struct {
// contains filtered or unexported fields
}
InfluxDBLineProtocol is a struct with the same data types as defined in the InfluxDB Line Protocol; namely the measurement name, a set of tags, a set of fields and a timestamp.
func (*InfluxDBLineProtocol) Metric ¶ added in v0.6.0
func (line *InfluxDBLineProtocol) Metric() *skogul.Metric
Metric converts an internal InfluxDBLineProtocol struct to a skogul.Metric
func (*InfluxDBLineProtocol) ParseLine ¶ added in v0.6.0
func (line *InfluxDBLineProtocol) ParseLine(s string) error
ParseLine parses a single line into an internal InfluxDBLineProtocol