influx

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInfluxDBClient

func NewInfluxDBClient(conf InfluxDBConfig) client.Client

func Restore

func Restore(c client.Client, db, series string, file io.Reader)

Types

type InfluxDBConfig

type InfluxDBConfig struct {
	Addr     string
	Username string
	Password string
}

type Meta

type Meta struct {
	Fields map[int][]string  `json:"fields"`
	Tags   map[string]string `json:"tags"`
}

type Series

type Series struct {
	Name    string          `json:"name"`
	Columns []string        `json:"columns"`
	Values  [][]interface{} `json:"values"`
	Meta    `json:"_meta"`
}

func Dump

func Dump(c client.Client, db, series string) []Series

Jump to

Keyboard shortcuts

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