Documentation
¶
Index ¶
- type InfluxHTTPClient
- func (ic InfluxHTTPClient) InsertRaw(db, precision, retentionPolicy string, points []*client.Point) error
- func (ic *InfluxHTTPClient) Open() error
- func (ic InfluxHTTPClient) ReadQuery(query, db, precission string, parameters map[string]interface{}) *RawResponse
- func (ic InfluxHTTPClient) WriteQuery(db, measurement, precision, retentionPolicy string, points interface{}) error
- type RawResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InfluxHTTPClient ¶
InfluxHTTPClient is a http client to influxdb
func NewHTTPClient ¶
func NewHTTPClient(address, username, password string) InfluxHTTPClient
NewHTTPClient creates new InfluxHTTPClient
func (InfluxHTTPClient) InsertRaw ¶
func (ic InfluxHTTPClient) InsertRaw(db, precision, retentionPolicy string, points []*client.Point) error
InsertRaw insert raw influx client points to database
func (*InfluxHTTPClient) Open ¶
func (ic *InfluxHTTPClient) Open() error
Open sets up influxdb http client
func (InfluxHTTPClient) ReadQuery ¶
func (ic InfluxHTTPClient) ReadQuery(query, db, precission string, parameters map[string]interface{}) *RawResponse
ReadQuery performs read operation on influxdb
func (InfluxHTTPClient) WriteQuery ¶
func (ic InfluxHTTPClient) WriteQuery(db, measurement, precision, retentionPolicy string, points interface{}) error
WriteQuery inserts points to influxdb
type RawResponse ¶
RawResponse contains raw influxdb data returned by http client
func (RawResponse) As ¶
func (rr RawResponse) As(v interface{}) error
As parses raw influx response to value pointed by v
Click to show internal directories.
Click to hide internal directories.