influx

package
v0.0.0-...-2eff1f3 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client automagically sends your Influxable resources

func Connect

func Connect(options Options) (*Client, error)

Connect to the target InfluxDB server

func (*Client) Send

func (influxClient *Client) Send(thing Influxable) error

Send an Influxable thing to the configured InfluxDB

type Influxable

type Influxable interface {
	Tags() map[string]string
	Fields() map[string]interface{}
	Category() string
}

Influxable things can be sent to InfluxDB

type Options

type Options struct {
	Server   string
	Database string
	Username string
	Password string
}

Options specifies how to connect to our InfluxDB server

Jump to

Keyboard shortcuts

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