influxdb

package
v1.3.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = InfluxdbConfig{
	User:     "root",
	Password: "root",
	Host:     "localhost:8086",
	DbName:   "k8s",
	Secure:   false,
}

Functions

This section is empty.

Types

type FakeInfluxDBClient

type FakeInfluxDBClient struct {
	Pnts []PointSavedToInfluxdb
}

func NewFakeInfluxDBClient

func NewFakeInfluxDBClient() *FakeInfluxDBClient

func (*FakeInfluxDBClient) Ping

func (client *FakeInfluxDBClient) Ping() (time.Duration, string, error)

func (*FakeInfluxDBClient) Query

func (client *FakeInfluxDBClient) Query(q influxdb.Query) (*influxdb.Response, error)

func (*FakeInfluxDBClient) Write

type InfluxdbClient

type InfluxdbClient interface {
	Write(influxdb.BatchPoints) (*influxdb.Response, error)
	Query(influxdb.Query) (*influxdb.Response, error)
	Ping() (time.Duration, string, error)
}

func NewClient

func NewClient(c InfluxdbConfig) (InfluxdbClient, error)

type InfluxdbConfig

type InfluxdbConfig struct {
	User       string
	Password   string
	Secure     bool
	Host       string
	DbName     string
	WithFields bool
}

func BuildConfig

func BuildConfig(uri *url.URL) (*InfluxdbConfig, error)

type PointSavedToInfluxdb

type PointSavedToInfluxdb struct {
	Ponit influxdb.Point
}

Jump to

Keyboard shortcuts

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