Documentation ¶
Index ¶
- type Metrics
- func (_m *Metrics) Close() error
- func (_m *Metrics) Count(name string, value int64, tags ...string)
- func (_m *Metrics) Decr(name string, tags ...string)
- func (_m *Metrics) Error(errName string)
- func (_m *Metrics) Gauge(name string, value float64, rate float64, tags ...string)
- func (_m *Metrics) Histogram(name string, value float64, rate float64, tags ...string)
- func (_m *Metrics) IncMonotonic(name string, tags ...string)
- func (_m *Metrics) Incr(name string, tags ...string)
- func (_m *Metrics) Latency(jobName string, start time.Time, tags ...string)
- func (_m *Metrics) Time(name string, value time.Duration, tags ...string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
Metrics is an autogenerated mock type for the Metrics type
func NewMetrics ¶
NewMetrics creates a new instance of Metrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Metrics) Histogram ¶
Histogram provides a mock function with given fields: name, value, rate, tags
func (*Metrics) IncMonotonic ¶
IncMonotonic provides a mock function with given fields: name, tags
Click to show internal directories.
Click to hide internal directories.