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
Click to show internal directories.
Click to hide internal directories.