Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidHttpMode = errors.New("'httpMode' should be either 'GET' or 'POST'")
Functions ¶
This section is empty.
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, query *Query) *backend.QueryDataResponse
type Service ¶
type Service struct { QueryParser *InfluxdbQueryParser ResponseParser *ResponseParser // contains filtered or unexported fields }
func ProvideService ¶
func ProvideService(httpClient httpclient.Provider, registrar plugins.CoreBackendRegistrar) (*Service, 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.