2018-06-15 04:57:11 -07:00
|
|
|
package mempool
|
|
|
|
|
2018-06-16 00:12:55 -07:00
|
|
|
import (
|
|
|
|
"github.com/go-kit/kit/metrics"
|
|
|
|
"github.com/go-kit/kit/metrics/discard"
|
|
|
|
)
|
2018-06-15 04:57:11 -07:00
|
|
|
|
|
|
|
// Metrics contains metrics exposed by this package.
|
|
|
|
// see MetricsProvider for descriptions.
|
|
|
|
type Metrics struct {
|
2018-06-19 00:27:58 -07:00
|
|
|
// Size of the mempool.
|
2018-06-15 04:57:11 -07:00
|
|
|
Size metrics.Gauge
|
|
|
|
}
|
|
|
|
|
|
|
|
// NopMetrics returns no-op Metrics.
|
|
|
|
func NopMetrics() *Metrics {
|
|
|
|
return &Metrics{
|
|
|
|
Size: discard.NewGauge(),
|
|
|
|
}
|
|
|
|
}
|