querybuilder

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterBuilderFactory added in v0.4.0

func RegisterBuilderFactory(metricSource metricquery.MetricSource, initFunc BuilderFactoryFunc)

Types

type Builder

type Builder interface {
	BuildQuery() (*metricquery.Query, error)
}

Builder is an interface which is used to build query for different data sources according a context info about the query.

type BuilderFactoryFunc added in v0.4.0

type BuilderFactoryFunc func(metric *metricquery.Metric) Builder

func GetBuilderFactory added in v0.4.0

func GetBuilderFactory(metricSource metricquery.MetricSource) BuilderFactoryFunc

type QueryBuilder

type QueryBuilder interface {
	Builder(source metricquery.MetricSource) Builder
}

QueryBuilder is an Builder factory to make Builders

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL