Documentation ¶
Overview ¶
Package mock_metrics is a generated GoMock package.
Index ¶
- type MockMetrics
- func (m *MockMetrics) EXPECT() *MockMetricsMockRecorder
- func (m *MockMetrics) IncBytesUploaded(bytesUploaded int)
- func (m *MockMetrics) IncGrpcPanicsTotal()
- func (m *MockMetrics) IncHits(status int, method, path string)
- func (m *MockMetrics) IncRestPanicsTotal()
- func (m *MockMetrics) ObserveResponseTime(status int, method, path string, observeTime float64)
- type MockMetricsMockRecorder
- func (mr *MockMetricsMockRecorder) IncBytesUploaded(bytesUploaded interface{}) *gomock.Call
- func (mr *MockMetricsMockRecorder) IncGrpcPanicsTotal() *gomock.Call
- func (mr *MockMetricsMockRecorder) IncHits(status, method, path interface{}) *gomock.Call
- func (mr *MockMetricsMockRecorder) IncRestPanicsTotal() *gomock.Call
- func (mr *MockMetricsMockRecorder) ObserveResponseTime(status, method, path, observeTime interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockMetrics ¶
type MockMetrics struct {
// contains filtered or unexported fields
}
MockMetrics is a mock of Metrics interface.
func NewMockMetrics ¶
func NewMockMetrics(ctrl *gomock.Controller) *MockMetrics
NewMockMetrics creates a new mock instance.
func (*MockMetrics) EXPECT ¶
func (m *MockMetrics) EXPECT() *MockMetricsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMetrics) IncBytesUploaded ¶
func (m *MockMetrics) IncBytesUploaded(bytesUploaded int)
IncBytesUploaded mocks base method.
func (*MockMetrics) IncGrpcPanicsTotal ¶
func (m *MockMetrics) IncGrpcPanicsTotal()
IncGrpcPanicsTotal mocks base method.
func (*MockMetrics) IncHits ¶
func (m *MockMetrics) IncHits(status int, method, path string)
IncHits mocks base method.
func (*MockMetrics) IncRestPanicsTotal ¶
func (m *MockMetrics) IncRestPanicsTotal()
IncRestPanicsTotal mocks base method.
func (*MockMetrics) ObserveResponseTime ¶
func (m *MockMetrics) ObserveResponseTime(status int, method, path string, observeTime float64)
ObserveResponseTime mocks base method.
type MockMetricsMockRecorder ¶
type MockMetricsMockRecorder struct {
// contains filtered or unexported fields
}
MockMetricsMockRecorder is the mock recorder for MockMetrics.
func (*MockMetricsMockRecorder) IncBytesUploaded ¶
func (mr *MockMetricsMockRecorder) IncBytesUploaded(bytesUploaded interface{}) *gomock.Call
IncBytesUploaded indicates an expected call of IncBytesUploaded.
func (*MockMetricsMockRecorder) IncGrpcPanicsTotal ¶
func (mr *MockMetricsMockRecorder) IncGrpcPanicsTotal() *gomock.Call
IncGrpcPanicsTotal indicates an expected call of IncGrpcPanicsTotal.
func (*MockMetricsMockRecorder) IncHits ¶
func (mr *MockMetricsMockRecorder) IncHits(status, method, path interface{}) *gomock.Call
IncHits indicates an expected call of IncHits.
func (*MockMetricsMockRecorder) IncRestPanicsTotal ¶
func (mr *MockMetricsMockRecorder) IncRestPanicsTotal() *gomock.Call
IncRestPanicsTotal indicates an expected call of IncRestPanicsTotal.
func (*MockMetricsMockRecorder) ObserveResponseTime ¶
func (mr *MockMetricsMockRecorder) ObserveResponseTime(status, method, path, observeTime interface{}) *gomock.Call
ObserveResponseTime indicates an expected call of ObserveResponseTime.