influx

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Influx

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

Influx is the wrapper for the influx client connection

func New

func New(connection, dbname, u, p string) Influx

New returns a newly created influxdb object

func (*Influx) Close

func (s *Influx) Close() error

Close connection to influxdb server

func (*Influx) Connect

func (s *Influx) Connect(timeout time.Duration) error

Connect to influxdb server

func (*Influx) Marshal

func (s *Influx) Marshal(resp *client.Response) (string, error)

Marshal Convert client.Respnse to JSON

func (*Influx) Query

func (s *Influx) Query(q string) (*client.Response, error)

Query executes the provided query string and returns the results as a JSON object

Jump to

Keyboard shortcuts

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