Documentation ¶
Index ¶
Constants ¶
View Source
const ( DelimiterDefault = "." NoLabelDefault = "none" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
Counter is a mock counter.
func NewCounter ¶
NewCounter creates a new counter with the provided options.
type Gauge ¶
type Gauge struct {
// contains filtered or unexported fields
}
Gauge is a mock gauge.
type Histogram ¶
type Histogram struct {
// contains filtered or unexported fields
}
Histogram is a mock histogram.
func NewHistogram ¶
NewHistogram creates a new histogram with the provided options.
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func ExpectLabels ¶
ExpectLabels sets the labels that are expected to be passed to the metric.
The labels aren't validated against, but provide the number of labels that are expected to be passed to the metric.
If the number of labels passed to the metric doesn't match the number of labels passed to ExpectLabels, the call to update the metric will panic.
Click to show internal directories.
Click to hide internal directories.