tendermint/mempool/metrics.go

21 lines
384 B
Go
Raw Normal View History

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 {
// 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(),
}
}