Documentation ¶
Index ¶
- Variables
- func NewInfluxDBExecutor(dsInfo *tsdb.DataSourceInfo) tsdb.Executor
- type DefinitionParameters
- type InfluxDBExecutor
- type InfluxDbSelect
- type InfluxdbQueryParser
- type Message
- type Query
- type QueryBuilder
- type QueryDefinition
- type QueryPart
- type Response
- type ResponseParser
- type Result
- type Row
- type Select
- type Tag
Constants ¶
This section is empty.
Variables ¶
View Source
var (
HttpClient *http.Client
)
Functions ¶
func NewInfluxDBExecutor ¶
func NewInfluxDBExecutor(dsInfo *tsdb.DataSourceInfo) tsdb.Executor
Types ¶
type DefinitionParameters ¶
type InfluxDBExecutor ¶
type InfluxDBExecutor struct { *tsdb.DataSourceInfo QueryParser *InfluxdbQueryParser QueryBuilder *QueryBuilder ResponseParser *ResponseParser }
func (*InfluxDBExecutor) Execute ¶
func (e *InfluxDBExecutor) Execute(ctx context.Context, queries tsdb.QuerySlice, context *tsdb.QueryContext) *tsdb.BatchResult
type InfluxDbSelect ¶
type InfluxDbSelect struct {
Type string
}
type InfluxdbQueryParser ¶
type InfluxdbQueryParser struct{}
func (*InfluxdbQueryParser) Parse ¶
func (qp *InfluxdbQueryParser) Parse(model *simplejson.Json, dsInfo *tsdb.DataSourceInfo) (*Query, error)
type QueryBuilder ¶
type QueryBuilder struct{}
func (*QueryBuilder) Build ¶
func (qb *QueryBuilder) Build(query *Query, queryContext *tsdb.QueryContext) (string, error)
type QueryDefinition ¶
type QueryDefinition struct { Renderer func(query *Query, queryContext *tsdb.QueryContext, part *QueryPart, innerExpr string) string Params []DefinitionParameters }
func (QueryDefinition) Render ¶
func (r QueryDefinition) Render(query *Query, queryContext *tsdb.QueryContext, part *QueryPart, innerExpr string) string
type QueryPart ¶
type QueryPart struct { Def QueryDefinition Type string Params []string }
type ResponseParser ¶
type ResponseParser struct{}
func (*ResponseParser) Parse ¶
func (rp *ResponseParser) Parse(response *Response) *tsdb.QueryResult
Click to show internal directories.
Click to hide internal directories.