Documentation ¶
Index ¶
- Variables
- func CheckFluxHealth(ctx context.Context, dsInfo *models.DatasourceInfo, ...) (*backend.CheckHealthResult, error)
- func CheckInfluxQLHealth(ctx context.Context, dsInfo *models.DatasourceInfo, s *Service) (*backend.CheckHealthResult, error)
- type DefinitionParameters
- type InfluxdbQueryParser
- type Message
- type Query
- type QueryDefinition
- type QueryPart
- type Response
- type ResponseParser
- type Result
- type Row
- type Select
- type Service
- type Tag
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidHttpMode = errors.New("'httpMode' should be either 'GET' or 'POST'")
Functions ¶
func CheckFluxHealth ¶
func CheckFluxHealth(ctx context.Context, dsInfo *models.DatasourceInfo, req *backend.CheckHealthRequest) (*backend.CheckHealthResult, error)
func CheckInfluxQLHealth ¶
func CheckInfluxQLHealth(ctx context.Context, dsInfo *models.DatasourceInfo, s *Service) (*backend.CheckHealthResult, error)
Types ¶
type DefinitionParameters ¶
type InfluxdbQueryParser ¶
type InfluxdbQueryParser struct{}
type Query ¶
type QueryDefinition ¶
type QueryDefinition struct { Renderer func(query *Query, queryContext *backend.QueryDataRequest, part *QueryPart, innerExpr string) string Params []DefinitionParameters }
type QueryPart ¶
type QueryPart struct { Def QueryDefinition Type string Params []string }
type ResponseParser ¶
type ResponseParser struct{}
func (*ResponseParser) Parse ¶
func (rp *ResponseParser) Parse(buf io.ReadCloser, queries []Query) *backend.QueryDataResponse
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func ProvideService ¶
func ProvideService(httpClient httpclient.Provider) *Service
func (*Service) CheckHealth ¶
func (s *Service) CheckHealth(ctx context.Context, req *backend.CheckHealthRequest) (*backend.CheckHealthResult, error)
func (*Service) QueryData ¶
func (s *Service) QueryData(ctx context.Context, req *backend.QueryDataRequest) (*backend.QueryDataResponse, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.