influxdb

package
v0.0.0-...-cb05164 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

type Writer interface {
	WriteRecords(ctx context.Context, rows []map[string]interface{}) error
	Close()
}

Writer describes what an InfluxDB writer should do

func NewWriter

func NewWriter(
	server, token, org, bucket, measurement, tsLayout, tsRow string,
	tags []*flags.Tag,
	fields []*flags.Field,
) Writer

NewWriter returns an Writer implementation from given parameters

func NewWriters

func NewWriters(
	servers []string,
	token, org, bucket, measurement, tsLayout, tsRow string,
	tags []*flags.Tag,
	fields []*flags.Field,
) Writer

NewWriters returns a Writers implementation from given parameters

Jump to

Keyboard shortcuts

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