Documentation ¶
Overview ¶
Package metricsmock is a generated GoMock package.
Index ¶
- type Metrics
- func (m *Metrics) AfterRequest(arg0 *rpc.RequestInfo)
- func (m *Metrics) EXPECT() *MetricsMockRecorder
- func (m *Metrics) IncTxRefreshHits()
- func (m *Metrics) IncTxRefreshMisses()
- func (m *Metrics) IncTxRefreshes()
- func (m *Metrics) InterceptRequest(arg0 *rpc.RequestInfo) *http.Request
- func (m *Metrics) MarkBlockAccepted(arg0 block.Block) error
- func (m *Metrics) MarkTxAccepted(arg0 *txs.Tx) error
- type MetricsMockRecorder
- func (mr *MetricsMockRecorder) AfterRequest(arg0 any) *gomock.Call
- func (mr *MetricsMockRecorder) IncTxRefreshHits() *gomock.Call
- func (mr *MetricsMockRecorder) IncTxRefreshMisses() *gomock.Call
- func (mr *MetricsMockRecorder) IncTxRefreshes() *gomock.Call
- func (mr *MetricsMockRecorder) InterceptRequest(arg0 any) *gomock.Call
- func (mr *MetricsMockRecorder) MarkBlockAccepted(arg0 any) *gomock.Call
- func (mr *MetricsMockRecorder) MarkTxAccepted(arg0 any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
Metrics is a mock of Metrics interface.
func NewMetrics ¶
func NewMetrics(ctrl *gomock.Controller) *Metrics
NewMetrics creates a new mock instance.
func (*Metrics) AfterRequest ¶
func (m *Metrics) AfterRequest(arg0 *rpc.RequestInfo)
AfterRequest mocks base method.
func (*Metrics) EXPECT ¶
func (m *Metrics) EXPECT() *MetricsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*Metrics) IncTxRefreshHits ¶
func (m *Metrics) IncTxRefreshHits()
IncTxRefreshHits mocks base method.
func (*Metrics) IncTxRefreshMisses ¶
func (m *Metrics) IncTxRefreshMisses()
IncTxRefreshMisses mocks base method.
func (*Metrics) IncTxRefreshes ¶
func (m *Metrics) IncTxRefreshes()
IncTxRefreshes mocks base method.
func (*Metrics) InterceptRequest ¶
func (m *Metrics) InterceptRequest(arg0 *rpc.RequestInfo) *http.Request
InterceptRequest mocks base method.
func (*Metrics) MarkBlockAccepted ¶
MarkBlockAccepted mocks base method.
type MetricsMockRecorder ¶
type MetricsMockRecorder struct {
// contains filtered or unexported fields
}
MetricsMockRecorder is the mock recorder for Metrics.
func (*MetricsMockRecorder) AfterRequest ¶
func (mr *MetricsMockRecorder) AfterRequest(arg0 any) *gomock.Call
AfterRequest indicates an expected call of AfterRequest.
func (*MetricsMockRecorder) IncTxRefreshHits ¶
func (mr *MetricsMockRecorder) IncTxRefreshHits() *gomock.Call
IncTxRefreshHits indicates an expected call of IncTxRefreshHits.
func (*MetricsMockRecorder) IncTxRefreshMisses ¶
func (mr *MetricsMockRecorder) IncTxRefreshMisses() *gomock.Call
IncTxRefreshMisses indicates an expected call of IncTxRefreshMisses.
func (*MetricsMockRecorder) IncTxRefreshes ¶
func (mr *MetricsMockRecorder) IncTxRefreshes() *gomock.Call
IncTxRefreshes indicates an expected call of IncTxRefreshes.
func (*MetricsMockRecorder) InterceptRequest ¶
func (mr *MetricsMockRecorder) InterceptRequest(arg0 any) *gomock.Call
InterceptRequest indicates an expected call of InterceptRequest.
func (*MetricsMockRecorder) MarkBlockAccepted ¶
func (mr *MetricsMockRecorder) MarkBlockAccepted(arg0 any) *gomock.Call
MarkBlockAccepted indicates an expected call of MarkBlockAccepted.
func (*MetricsMockRecorder) MarkTxAccepted ¶
func (mr *MetricsMockRecorder) MarkTxAccepted(arg0 any) *gomock.Call
MarkTxAccepted indicates an expected call of MarkTxAccepted.