Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SQLBuilder ¶
type SQLBuilder interface { MetricName(name string) SQLBuilder GetMetricName() string Select(columns ...string) SQLBuilder From(table string) SQLBuilder Where(condition ...string) SQLBuilder Range(start, end time.Time) SQLBuilder Group(groups ...string) SQLBuilder Interval(interval int) SQLBuilder Build() (string, error) ValidateBuilder() error }
SQLBuilder is the interface for building SQL statements.
func NewGaugeMetricSQLBuilder ¶
func NewGaugeMetricSQLBuilder() SQLBuilder
func NewSumMetricSQLBuilder ¶
func NewSumMetricSQLBuilder() SQLBuilder
type SelectResult ¶
Click to show internal directories.
Click to hide internal directories.