Documentation
¶
Index ¶
Constants ¶
View Source
const ( BooleanField = "bool" DataField = "data" StringField = "string" SumField = "sum" ValueField = "value" UpdateTimeField = "update_time" HostTag = "host" NameTag = "name" UnitTag = "unit" TimeField = "time" )
InfluxDB tag and field values.
Variables ¶
This section is empty.
Functions ¶
func NewSenML ¶
func NewSenML(row *models.Row) (m []senml.Measurement, err error)
NewSenML creates a new JSONPoint from an InfluxDB row
func PointsFromSenML ¶
func PointsFromSenML(name, host string, list []senml.Measurement) (pts []*influxdb.Point, err error)
PointsFromSenML creates a list of InfluxDB points from a list of SenML measurements.
Types ¶
type Client ¶
Client is an extended InfluxDB client
func NewClient ¶
func NewClient(config *ClientConfig) (c *Client, err error)
NewClient returns a Client for the given configuration
type ClientConfig ¶
type ClientConfig struct {
Host, Database, Username, Password string
}
ClientConfig contains InfluxDB client configuration
Click to show internal directories.
Click to hide internal directories.