thininfluxclient

package
v0.0.0-...-60b8127 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InfluxError

type InfluxError struct {
	Error string
}

InfluxError message returned on error ffjson: noencoder

type ThinInfluxClient

type ThinInfluxClient struct {
	URL      string
	Username string
	// contains filtered or unexported fields
}

ThinInfluxClient sends data to influxdb ffjson: skip

func NewThinInfluxClient

func NewThinInfluxClient(server string, port int, database, username, password, precision string, ssl bool) (ThinInfluxClient, error)

NewThinInfluxClient creates a new thin influx client

func (*ThinInfluxClient) Send

func (client *ThinInfluxClient) Send(lines []string) error

Send data to influx db Data is represented by lines of influxdb lineprotocol see https://docs.influxdata.com/influxdb/v1.2/write_protocols/line_protocol_tutorial/ Limiting submits to maxlines (currently 5000) items as in https://docs.influxdata.com/influxdb/v1.2/guides/writing_data/

Jump to

Keyboard shortcuts

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