Documentation ¶
Index ¶
- type Client
- func (this *Client) Close() error
- func (this *Client) CreateDatabase(name string, policy *influxdb.RetentionPolicy) error
- func (this *Client) CreateRetentionPolicy(name string, policy *influxdb.RetentionPolicy) error
- func (this *Client) Database() string
- func (this *Client) Do(query influxdb.Query) (influxdb.Results, error)
- func (this *Client) DropDatabase(name string) error
- func (this *Client) DropRetentionPolicy(name string) error
- func (this *Client) NewDataset(name string, fields ...string) (influxdb.Dataset, error)
- func (this *Client) Precision() string
- func (this *Client) RetentionPolicies() (map[string]*influxdb.RetentionPolicy, error)
- func (this *Client) SetDatabase(name string) error
- func (this *Client) SetPrecision(value string) error
- func (this *Client) String() string
- func (this *Client) Version() string
- func (this *Client) Write(dataset influxdb.Dataset) error
- type Config
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 defines a connection to an Influx Database
func (*Client) CreateDatabase ¶
func (this *Client) CreateDatabase(name string, policy *influxdb.RetentionPolicy) error
func (*Client) CreateRetentionPolicy ¶
func (this *Client) CreateRetentionPolicy(name string, policy *influxdb.RetentionPolicy) error
func (*Client) DropDatabase ¶
func (*Client) DropRetentionPolicy ¶
func (*Client) NewDataset ¶
NewDataset returns an empty dataset object used for writing
func (*Client) RetentionPolicies ¶
func (this *Client) RetentionPolicies() (map[string]*influxdb.RetentionPolicy, error)
func (*Client) SetDatabase ¶
SetDatabase sets the current database to use, will return ErrBadParameter if the database doesn't exist, or ErrNotConnected if the server is not connected
func (*Client) SetPrecision ¶
SetPrecision sets precision for setting and returning timestamps
Click to show internal directories.
Click to hide internal directories.