influxdb

package
v0.0.0-...-c728838 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2017 License: MIT Imports: 6 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Usage

func Usage() string

func ValidateOptions

func ValidateOptions(options *Options)

Types

type Connection

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

func NewConnection

func NewConnection(opts *Options, configPath string) *Connection

func (*Connection) CreateDatabase

func (conn *Connection) CreateDatabase()

func (*Connection) InsertMaps

func (conn *Connection) InsertMaps(tagsSet map[string]bool,
	maps []map[string]interface{})

func (*Connection) QueryForLastTimestamp

func (conn *Connection) QueryForLastTimestamp(mainColumnName string) time.Time

func (*Connection) QueryForLastTimestampForTag

func (conn *Connection) QueryForLastTimestampForTag(mainColumnName, tagName, tagValue string) time.Time

type Options

type Options struct {
	Hostname        string
	Port            string
	Username        string
	Password        string
	DatabaseName    string
	MeasurementName string
}

Jump to

Keyboard shortcuts

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