Documentation ¶
Overview ¶
Package mock_metrics is a generated GoMock package.
Index ¶
- type MockCounterT
- type MockCounterTMockRecorder
- type MockHistogramT
- type MockHistogramTMockRecorder
- type MockManagerT
- func (m *MockManagerT) AddCounter(name, help string, labelNames []string) error
- func (m *MockManagerT) AddHistogram(name, help string, labelNames []string, buckets []float64) error
- func (m *MockManagerT) EXPECT() *MockManagerTMockRecorder
- func (m *MockManagerT) GetCounter(name string) (metrics.CounterT, error)
- func (m *MockManagerT) GetHistogram(name string) (metrics.HistogramT, error)
- type MockManagerTMockRecorder
- func (mr *MockManagerTMockRecorder) AddCounter(name, help, labelNames interface{}) *gomock.Call
- func (mr *MockManagerTMockRecorder) AddHistogram(name, help, labelNames, buckets interface{}) *gomock.Call
- func (mr *MockManagerTMockRecorder) GetCounter(name interface{}) *gomock.Call
- func (mr *MockManagerTMockRecorder) GetHistogram(name interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCounterT ¶
type MockCounterT struct {
// contains filtered or unexported fields
}
MockCounterT is a mock of CounterT interface
func NewMockCounterT ¶
func NewMockCounterT(ctrl *gomock.Controller) *MockCounterT
NewMockCounterT creates a new mock instance
func (*MockCounterT) Add ¶
func (m *MockCounterT) Add(labels map[string]string, value float64) error
Add mocks base method
func (*MockCounterT) CreationTime ¶
func (m *MockCounterT) CreationTime() time.Time
CreationTime mocks base method
func (*MockCounterT) EXPECT ¶
func (m *MockCounterT) EXPECT() *MockCounterTMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockCounterT) Metric ¶
func (m *MockCounterT) Metric() *prometheus.CounterVec
Metric mocks base method
type MockCounterTMockRecorder ¶
type MockCounterTMockRecorder struct {
// contains filtered or unexported fields
}
MockCounterTMockRecorder is the mock recorder for MockCounterT
func (*MockCounterTMockRecorder) Add ¶
func (mr *MockCounterTMockRecorder) Add(labels, value interface{}) *gomock.Call
Add indicates an expected call of Add
func (*MockCounterTMockRecorder) CreationTime ¶
func (mr *MockCounterTMockRecorder) CreationTime() *gomock.Call
CreationTime indicates an expected call of CreationTime
func (*MockCounterTMockRecorder) Metric ¶
func (mr *MockCounterTMockRecorder) Metric() *gomock.Call
Metric indicates an expected call of Metric
type MockHistogramT ¶
type MockHistogramT struct {
// contains filtered or unexported fields
}
MockHistogramT is a mock of HistogramT interface
func NewMockHistogramT ¶
func NewMockHistogramT(ctrl *gomock.Controller) *MockHistogramT
NewMockHistogramT creates a new mock instance
func (*MockHistogramT) CreationTime ¶
func (m *MockHistogramT) CreationTime() time.Time
CreationTime mocks base method
func (*MockHistogramT) EXPECT ¶
func (m *MockHistogramT) EXPECT() *MockHistogramTMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockHistogramT) Metric ¶
func (m *MockHistogramT) Metric() prometheus.ObserverVec
Metric mocks base method
type MockHistogramTMockRecorder ¶
type MockHistogramTMockRecorder struct {
// contains filtered or unexported fields
}
MockHistogramTMockRecorder is the mock recorder for MockHistogramT
func (*MockHistogramTMockRecorder) CreationTime ¶
func (mr *MockHistogramTMockRecorder) CreationTime() *gomock.Call
CreationTime indicates an expected call of CreationTime
func (*MockHistogramTMockRecorder) Metric ¶
func (mr *MockHistogramTMockRecorder) Metric() *gomock.Call
Metric indicates an expected call of Metric
func (*MockHistogramTMockRecorder) Observe ¶
func (mr *MockHistogramTMockRecorder) Observe(labels, values interface{}) *gomock.Call
Observe indicates an expected call of Observe
type MockManagerT ¶
type MockManagerT struct {
// contains filtered or unexported fields
}
MockManagerT is a mock of ManagerT interface
func NewMockManagerT ¶
func NewMockManagerT(ctrl *gomock.Controller) *MockManagerT
NewMockManagerT creates a new mock instance
func (*MockManagerT) AddCounter ¶
func (m *MockManagerT) AddCounter(name, help string, labelNames []string) error
AddCounter mocks base method
func (*MockManagerT) AddHistogram ¶
func (m *MockManagerT) AddHistogram(name, help string, labelNames []string, buckets []float64) error
AddHistogram mocks base method
func (*MockManagerT) EXPECT ¶
func (m *MockManagerT) EXPECT() *MockManagerTMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockManagerT) GetCounter ¶
func (m *MockManagerT) GetCounter(name string) (metrics.CounterT, error)
GetCounter mocks base method
func (*MockManagerT) GetHistogram ¶
func (m *MockManagerT) GetHistogram(name string) (metrics.HistogramT, error)
GetHistogram mocks base method
type MockManagerTMockRecorder ¶
type MockManagerTMockRecorder struct {
// contains filtered or unexported fields
}
MockManagerTMockRecorder is the mock recorder for MockManagerT
func (*MockManagerTMockRecorder) AddCounter ¶
func (mr *MockManagerTMockRecorder) AddCounter(name, help, labelNames interface{}) *gomock.Call
AddCounter indicates an expected call of AddCounter
func (*MockManagerTMockRecorder) AddHistogram ¶
func (mr *MockManagerTMockRecorder) AddHistogram(name, help, labelNames, buckets interface{}) *gomock.Call
AddHistogram indicates an expected call of AddHistogram
func (*MockManagerTMockRecorder) GetCounter ¶
func (mr *MockManagerTMockRecorder) GetCounter(name interface{}) *gomock.Call
GetCounter indicates an expected call of GetCounter
func (*MockManagerTMockRecorder) GetHistogram ¶
func (mr *MockManagerTMockRecorder) GetHistogram(name interface{}) *gomock.Call
GetHistogram indicates an expected call of GetHistogram