influxdb

package
v4.2.713+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TagKeyName    = "tagKey"
	FieldKeyName  = "fieldKey"
	FieldTypeName = "fieldType"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg Config) (Client, error)

func (Client) DropDatabases

func (c Client) DropDatabases(databases []string) error

func (Client) ListMeasurements

func (c Client) ListMeasurements(db string, measurements []string) ([]Measurement, error)

func (Client) ListMeasurementsInDatabase

func (c Client) ListMeasurementsInDatabase(db string) ([]string, error)

type Config

type Config struct {
	Address  string
	Username string
	Password string
}

type Field

type Field struct {
	Name string
	Type string
}

type Measurement

type Measurement struct {
	Database string
	Name     string
	Tags     []string
	Fields   []Field
}

Jump to

Keyboard shortcuts

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