Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- func NewMinimalMetrics(ctrl *gomock.Controller) metrics.Metrics
- type MockMetrics
- func (m *MockMetrics) EXPECT() *MockMetricsMockRecorder
- func (m *MockMetrics) EmitCounter(name string, value interface{}, tags ...metrics.T) error
- func (m *MockMetrics) EmitGauge(name string, value interface{}, tags ...metrics.T) error
- func (m *MockMetrics) EmitHistogram(name string, value interface{}, tags ...metrics.T) error
- func (m *MockMetrics) GetGrpcServerOption() []grpc.ServerOption
- func (m *MockMetrics) GetHttpHandlers() map[string]http.Handler
- type MockMetricsMockRecorder
- func (mr *MockMetricsMockRecorder) EmitCounter(name, value interface{}, tags ...interface{}) *gomock.Call
- func (mr *MockMetricsMockRecorder) EmitGauge(name, value interface{}, tags ...interface{}) *gomock.Call
- func (mr *MockMetricsMockRecorder) EmitHistogram(name, value interface{}, tags ...interface{}) *gomock.Call
- func (mr *MockMetricsMockRecorder) GetGrpcServerOption() *gomock.Call
- func (mr *MockMetricsMockRecorder) GetHttpHandlers() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMinimalMetrics ¶
func NewMinimalMetrics(ctrl *gomock.Controller) metrics.Metrics
NewMinimalMetrics returns a mock metrics implement as a stub for test
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) EmitCounter ¶
func (m *MockMetrics) EmitCounter(name string, value interface{}, tags ...metrics.T) error
EmitCounter mocks base method
func (*MockMetrics) EmitGauge ¶
func (m *MockMetrics) EmitGauge(name string, value interface{}, tags ...metrics.T) error
EmitGauge mocks base method
func (*MockMetrics) EmitHistogram ¶
func (m *MockMetrics) EmitHistogram(name string, value interface{}, tags ...metrics.T) error
EmitHistogram mocks base method
func (*MockMetrics) GetGrpcServerOption ¶
func (m *MockMetrics) GetGrpcServerOption() []grpc.ServerOption
GetGrpcServerOption mocks base method
func (*MockMetrics) GetHttpHandlers ¶
func (m *MockMetrics) GetHttpHandlers() map[string]http.Handler
GetHttpHandlers mocks base method
type MockMetricsMockRecorder ¶
type MockMetricsMockRecorder struct {
// contains filtered or unexported fields
}
MockMetricsMockRecorder is the mock recorder for MockMetrics
func (*MockMetricsMockRecorder) EmitCounter ¶
func (mr *MockMetricsMockRecorder) EmitCounter(name, value interface{}, tags ...interface{}) *gomock.Call
EmitCounter indicates an expected call of EmitCounter
func (*MockMetricsMockRecorder) EmitGauge ¶
func (mr *MockMetricsMockRecorder) EmitGauge(name, value interface{}, tags ...interface{}) *gomock.Call
EmitGauge indicates an expected call of EmitGauge
func (*MockMetricsMockRecorder) EmitHistogram ¶
func (mr *MockMetricsMockRecorder) EmitHistogram(name, value interface{}, tags ...interface{}) *gomock.Call
EmitHistogram indicates an expected call of EmitHistogram
func (*MockMetricsMockRecorder) GetGrpcServerOption ¶
func (mr *MockMetricsMockRecorder) GetGrpcServerOption() *gomock.Call
GetGrpcServerOption indicates an expected call of GetGrpcServerOption
func (*MockMetricsMockRecorder) GetHttpHandlers ¶
func (mr *MockMetricsMockRecorder) GetHttpHandlers() *gomock.Call
GetHttpHandlers indicates an expected call of GetHttpHandlers