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/
Click to show internal directories.
Click to hide internal directories.