Documentation ¶
Index ¶
- func CreatePoints(name string, numOfColumns, numOfPoints int) []*influxdb.Series
- func CreatePointsFromFunc(name string, numOfColumns, numOfPoints int, f func(int) float64) []*influxdb.Series
- func ToMap(series *influxdb.Series) []map[string]interface{}
- type Client
- type DataTestClient
- func (self *DataTestClient) CreateDatabase(db string, c *C)
- func (self *DataTestClient) RunInvalidQuery(query string, c *C, timePrecision ...influxdb.TimePrecision) []*influxdb.Series
- func (self *DataTestClient) RunQuery(query string, c *C, timePrecision ...influxdb.TimePrecision) []*influxdb.Series
- func (self *DataTestClient) SetDB(db string)
- func (self *DataTestClient) WriteData(series []*influxdb.Series, c *C, timePrecision ...influxdb.TimePrecision)
- func (self *DataTestClient) WriteJsonData(seriesString string, c *C, timePrecision ...influxdb.TimePrecision)
- type Point
- type Series
- type SeriesCollection
- type Server
- func (self *Server) ApiPort() int
- func (self *Server) Delete(url, body string, c *C) *http.Response
- func (self *Server) DoesWalExist() error
- func (self *Server) Get(url string, c *C) []byte
- func (self *Server) GetErrorBody(database, query, username, password string, onlyLocal bool, c *C) (string, int)
- func (self *Server) GetResponse(database, query, username, password string, onlyLocal bool, c *C) *http.Response
- func (self *Server) Post(url, data string, c *C) *http.Response
- func (self *Server) PostGetBody(url, data string, c *C) []byte
- func (self *Server) Query(database, query string, onlyLocal bool, c *C) *SeriesCollection
- func (self *Server) QueryAsRoot(database, query string, onlyLocal bool, c *C) *SeriesCollection
- func (self *Server) QueryWithUsername(database, query string, onlyLocal bool, c *C, username, password string) *SeriesCollection
- func (self *Server) Request(method, url, data string, c *C) *http.Response
- func (self *Server) RunQuery(query string, precision influxdb.TimePrecision, c *C) []*influxdb.Series
- func (self *Server) RunQueryAsRoot(query string, precision influxdb.TimePrecision, c *C) []*influxdb.Series
- func (self *Server) RunQueryAsUser(query string, precision influxdb.TimePrecision, username, password string, ...) []*influxdb.Series
- func (self *Server) SetSslOnly(sslOnly bool)
- func (self *Server) Start() error
- func (self *Server) Stop()
- func (self *Server) VerifyForbiddenQuery(database, query string, onlyLocal bool, c *C, username, password string) string
- func (self *Server) WaitForServerToStart()
- func (self *Server) WaitForServerToSync()
- func (self *Server) WriteData(data interface{}, c *C, precision ...influxdb.TimePrecision)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePoints ¶
func CreatePointsFromFunc ¶
Types ¶
type Client ¶
type Client interface { RunQuery(query string, c *C, timePrecision ...influxdb.TimePrecision) []*influxdb.Series RunInvalidQuery(query string, c *C, timePrecision ...influxdb.TimePrecision) []*influxdb.Series WriteData(series []*influxdb.Series, c *C, timePrecision ...influxdb.TimePrecision) WriteJsonData(series string, c *C, timePrecision ...influxdb.TimePrecision) }
type DataTestClient ¶
type DataTestClient struct {
// contains filtered or unexported fields
}
func (*DataTestClient) CreateDatabase ¶
func (self *DataTestClient) CreateDatabase(db string, c *C)
func (*DataTestClient) RunInvalidQuery ¶
func (self *DataTestClient) RunInvalidQuery(query string, c *C, timePrecision ...influxdb.TimePrecision) []*influxdb.Series
func (*DataTestClient) RunQuery ¶
func (self *DataTestClient) RunQuery(query string, c *C, timePrecision ...influxdb.TimePrecision) []*influxdb.Series
func (*DataTestClient) SetDB ¶
func (self *DataTestClient) SetDB(db string)
func (*DataTestClient) WriteData ¶
func (self *DataTestClient) WriteData(series []*influxdb.Series, c *C, timePrecision ...influxdb.TimePrecision)
func (*DataTestClient) WriteJsonData ¶
func (self *DataTestClient) WriteJsonData(seriesString string, c *C, timePrecision ...influxdb.TimePrecision)
type Series ¶
type Series struct {
*common.SerializedSeries
}
func (*Series) GetValueForPointAndColumn ¶
type SeriesCollection ¶
type SeriesCollection struct {
Members []*common.SerializedSeries
}
func ResultsToSeriesCollection ¶
func ResultsToSeriesCollection(results []*common.SerializedSeries) *SeriesCollection
func (*SeriesCollection) GetSeries ¶
func (self *SeriesCollection) GetSeries(name string, c *C) *Series
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewSslServer ¶
func (*Server) DoesWalExist ¶
func (*Server) GetErrorBody ¶
func (*Server) GetResponse ¶
func (*Server) PostGetBody ¶
func (*Server) Query ¶
func (self *Server) Query(database, query string, onlyLocal bool, c *C) *SeriesCollection
func (*Server) QueryAsRoot ¶
func (self *Server) QueryAsRoot(database, query string, onlyLocal bool, c *C) *SeriesCollection
func (*Server) QueryWithUsername ¶
func (self *Server) QueryWithUsername(database, query string, onlyLocal bool, c *C, username, password string) *SeriesCollection
func (*Server) RunQueryAsRoot ¶
func (*Server) RunQueryAsUser ¶
func (*Server) SetSslOnly ¶
func (*Server) VerifyForbiddenQuery ¶
func (*Server) WaitForServerToStart ¶
func (self *Server) WaitForServerToStart()
func (*Server) WaitForServerToSync ¶
func (self *Server) WaitForServerToSync()
func (*Server) WriteData ¶
func (self *Server) WriteData(data interface{}, c *C, precision ...influxdb.TimePrecision)
Click to show internal directories.
Click to hide internal directories.