Documentation
¶
Index ¶
- type IfxCli
- func (f *IfxCli) GetDatabases() ([]string, error)
- func (f *IfxCli) Ping() error
- func (f *IfxCli) QueryBetweenWithTag(db, measure, tagName, tagValue string, start, end int, timeType string) (QueryResp, error)
- func (f *IfxCli) QueryLastNTime(db, measure string, n int, tp string) (QueryResp, error)
- func (f *IfxCli) QueryLastNTimeByTag(db, measure, tagName, tagValue string, n int, timeType string) (QueryResp, error)
- func (f *IfxCli) QueryMeasure(start, end time.Time)
- func (f *IfxCli) Write(data WriteData) error
- type IfxResp
- type QueryResp
- type WriteData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IfxCli ¶
type IfxCli struct { Ip string Port int User string PassWord string // contains filtered or unexported fields }
func NewClient ¶
create a new influxdb client; if the user and password was not be set in your influxdb server, set it as ""
func (*IfxCli) GetDatabases ¶
get all the name of databases
func (*IfxCli) QueryBetweenWithTag ¶ added in v0.0.5
func (*IfxCli) QueryLastNTime ¶
query the latest time data; n: the number of time duration; timeType support: "s": second, "m": minute, "h": hour, "d": day, "w": week
func (*IfxCli) QueryLastNTimeByTag ¶
func (f *IfxCli) QueryLastNTimeByTag(db, measure, tagName, tagValue string, n int, timeType string) (QueryResp, error)
query the latest time data by set the tag, n: the number of time duration timeType support: "s": second, "m": minute, "h": hour, "d": day, "w": week
func (*IfxCli) QueryMeasure ¶
Click to show internal directories.
Click to hide internal directories.