Versions in this module Expand all Collapse all v1 v1.11.11 Aug 6, 2024 Changes in this version + type Metrics interface + IncTxRefreshHits func() + IncTxRefreshMisses func() + IncTxRefreshes func() + MarkBlockAccepted func(b block.Block) error + MarkTxAccepted func(tx *txs.Tx) error + func New(registerer prometheus.Registerer) (Metrics, error) + type MockMetrics struct + func NewMockMetrics(ctrl *gomock.Controller) *MockMetrics + func (m *MockMetrics) AfterRequest(arg0 *rpc.RequestInfo) + func (m *MockMetrics) EXPECT() *MockMetricsMockRecorder + func (m *MockMetrics) IncTxRefreshHits() + func (m *MockMetrics) IncTxRefreshMisses() + func (m *MockMetrics) IncTxRefreshes() + func (m *MockMetrics) InterceptRequest(arg0 *rpc.RequestInfo) *http.Request + func (m *MockMetrics) MarkBlockAccepted(arg0 block.Block) error + func (m *MockMetrics) MarkTxAccepted(arg0 *txs.Tx) error + type MockMetricsMockRecorder struct + func (mr *MockMetricsMockRecorder) AfterRequest(arg0 any) *gomock.Call + func (mr *MockMetricsMockRecorder) IncTxRefreshHits() *gomock.Call + func (mr *MockMetricsMockRecorder) IncTxRefreshMisses() *gomock.Call + func (mr *MockMetricsMockRecorder) IncTxRefreshes() *gomock.Call + func (mr *MockMetricsMockRecorder) InterceptRequest(arg0 any) *gomock.Call + func (mr *MockMetricsMockRecorder) MarkBlockAccepted(arg0 any) *gomock.Call + func (mr *MockMetricsMockRecorder) MarkTxAccepted(arg0 any) *gomock.Call