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 ¶
Functions ¶
func NewInfluxDBExecutor ¶
func NewInfluxDBExecutor(dsInfo *tsdb.DataSourceInfo) tsdb.Executor
Types ¶
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 InfluxdbQueryParser ¶
type InfluxdbQueryParser struct{}
func (*InfluxdbQueryParser) Parse ¶
func (qp *InfluxdbQueryParser) Parse(model *simplejson.Json, dsInfo *tsdb.DataSourceInfo) (*Query, error)
type Message ¶
type Query ¶
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
type Row ¶
Source Files
¶
- influxdb.go
- model_parser.go
- models.go
- query_builder.go
- query_part.go
- response_parser.go
Click to show internal directories.
Click to hide internal directories.