Documentation ¶
Overview ¶
Package influxdb allows to send data to a remote InfluxDB server and then query the data to obtain results. It has several improvements over the standard Go client (like interacting with golang.org/x/net/context) but it is incomplete. It only contains functions and calls we need in our applications.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithContext ¶
WithContext opens a new connection to a remote database and adds it to the context
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
Connection to a remote InfluxDB server.
func FromContext ¶
func FromContext(ctx context.Context) *Connection
FromContext returns the database stored in the context
func NewConnection ¶
func NewConnection(host, database, username, password string) *Connection
NewConnection creates a new connection to a remote server.
type QueryResult ¶
QueryResult contains the rows returned by the server in a query.
type WriteSerie ¶
WriteSerie contains the list of points of a single serie to send to the server.