Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockCounter
- func (m *MockCounter) Add(arg0 float64)
- func (m *MockCounter) Collect(arg0 chan<- prometheus.Metric)
- func (m *MockCounter) Desc() *prometheus.Desc
- func (m *MockCounter) Describe(arg0 chan<- *prometheus.Desc)
- func (m *MockCounter) EXPECT() *MockCounterMockRecorder
- func (m *MockCounter) Inc()
- func (m *MockCounter) Write(arg0 *io_prometheus_client.Metric) error
- type MockCounterMockRecorder
- func (mr *MockCounterMockRecorder) Add(arg0 any) *gomock.Call
- func (mr *MockCounterMockRecorder) Collect(arg0 any) *gomock.Call
- func (mr *MockCounterMockRecorder) Desc() *gomock.Call
- func (mr *MockCounterMockRecorder) Describe(arg0 any) *gomock.Call
- func (mr *MockCounterMockRecorder) Inc() *gomock.Call
- func (mr *MockCounterMockRecorder) Write(arg0 any) *gomock.Call
- type MockGauge
- func (m *MockGauge) Add(arg0 float64)
- func (m *MockGauge) Collect(arg0 chan<- prometheus.Metric)
- func (m *MockGauge) Dec()
- func (m *MockGauge) Desc() *prometheus.Desc
- func (m *MockGauge) Describe(arg0 chan<- *prometheus.Desc)
- func (m *MockGauge) EXPECT() *MockGaugeMockRecorder
- func (m *MockGauge) Inc()
- func (m *MockGauge) Set(arg0 float64)
- func (m *MockGauge) SetToCurrentTime()
- func (m *MockGauge) Sub(arg0 float64)
- func (m *MockGauge) Write(arg0 *io_prometheus_client.Metric) error
- type MockGaugeMockRecorder
- func (mr *MockGaugeMockRecorder) Add(arg0 any) *gomock.Call
- func (mr *MockGaugeMockRecorder) Collect(arg0 any) *gomock.Call
- func (mr *MockGaugeMockRecorder) Dec() *gomock.Call
- func (mr *MockGaugeMockRecorder) Desc() *gomock.Call
- func (mr *MockGaugeMockRecorder) Describe(arg0 any) *gomock.Call
- func (mr *MockGaugeMockRecorder) Inc() *gomock.Call
- func (mr *MockGaugeMockRecorder) Set(arg0 any) *gomock.Call
- func (mr *MockGaugeMockRecorder) SetToCurrentTime() *gomock.Call
- func (mr *MockGaugeMockRecorder) Sub(arg0 any) *gomock.Call
- func (mr *MockGaugeMockRecorder) Write(arg0 any) *gomock.Call
- type MockMetricsCollector
- func (m *MockMetricsCollector) Connections() prometheus.Gauge
- func (m *MockMetricsCollector) EXPECT() *MockMetricsCollectorMockRecorder
- func (m *MockMetricsCollector) LogReadCount(arg0, arg1 string) prometheus.Counter
- func (m *MockMetricsCollector) LogWriteCount(arg0, arg1 string) prometheus.Counter
- func (m *MockMetricsCollector) PingFailureCount(arg0 string) prometheus.Counter
- func (m *MockMetricsCollector) TotalConnections() prometheus.Counter
- type MockMetricsCollectorMockRecorder
- func (mr *MockMetricsCollectorMockRecorder) Connections() *gomock.Call
- func (mr *MockMetricsCollectorMockRecorder) LogReadCount(arg0, arg1 any) *gomock.Call
- func (mr *MockMetricsCollectorMockRecorder) LogWriteCount(arg0, arg1 any) *gomock.Call
- func (mr *MockMetricsCollectorMockRecorder) PingFailureCount(arg0 any) *gomock.Call
- func (mr *MockMetricsCollectorMockRecorder) TotalConnections() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCounter ¶
type MockCounter struct {
// contains filtered or unexported fields
}
MockCounter is a mock of Counter interface.
func NewMockCounter ¶
func NewMockCounter(ctrl *gomock.Controller) *MockCounter
NewMockCounter creates a new mock instance.
func (*MockCounter) Collect ¶
func (m *MockCounter) Collect(arg0 chan<- prometheus.Metric)
Collect mocks base method.
func (*MockCounter) Describe ¶
func (m *MockCounter) Describe(arg0 chan<- *prometheus.Desc)
Describe mocks base method.
func (*MockCounter) EXPECT ¶
func (m *MockCounter) EXPECT() *MockCounterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCounter) Write ¶
func (m *MockCounter) Write(arg0 *io_prometheus_client.Metric) error
Write mocks base method.
type MockCounterMockRecorder ¶
type MockCounterMockRecorder struct {
// contains filtered or unexported fields
}
MockCounterMockRecorder is the mock recorder for MockCounter.
func (*MockCounterMockRecorder) Add ¶
func (mr *MockCounterMockRecorder) Add(arg0 any) *gomock.Call
Add indicates an expected call of Add.
func (*MockCounterMockRecorder) Collect ¶
func (mr *MockCounterMockRecorder) Collect(arg0 any) *gomock.Call
Collect indicates an expected call of Collect.
func (*MockCounterMockRecorder) Desc ¶
func (mr *MockCounterMockRecorder) Desc() *gomock.Call
Desc indicates an expected call of Desc.
func (*MockCounterMockRecorder) Describe ¶
func (mr *MockCounterMockRecorder) Describe(arg0 any) *gomock.Call
Describe indicates an expected call of Describe.
func (*MockCounterMockRecorder) Inc ¶
func (mr *MockCounterMockRecorder) Inc() *gomock.Call
Inc indicates an expected call of Inc.
type MockGauge ¶
type MockGauge struct {
// contains filtered or unexported fields
}
MockGauge is a mock of Gauge interface.
func NewMockGauge ¶
func NewMockGauge(ctrl *gomock.Controller) *MockGauge
NewMockGauge creates a new mock instance.
func (*MockGauge) Collect ¶
func (m *MockGauge) Collect(arg0 chan<- prometheus.Metric)
Collect mocks base method.
func (*MockGauge) Describe ¶
func (m *MockGauge) Describe(arg0 chan<- *prometheus.Desc)
Describe mocks base method.
func (*MockGauge) EXPECT ¶
func (m *MockGauge) EXPECT() *MockGaugeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGauge) SetToCurrentTime ¶
func (m *MockGauge) SetToCurrentTime()
SetToCurrentTime mocks base method.
type MockGaugeMockRecorder ¶
type MockGaugeMockRecorder struct {
// contains filtered or unexported fields
}
MockGaugeMockRecorder is the mock recorder for MockGauge.
func (*MockGaugeMockRecorder) Add ¶
func (mr *MockGaugeMockRecorder) Add(arg0 any) *gomock.Call
Add indicates an expected call of Add.
func (*MockGaugeMockRecorder) Collect ¶
func (mr *MockGaugeMockRecorder) Collect(arg0 any) *gomock.Call
Collect indicates an expected call of Collect.
func (*MockGaugeMockRecorder) Dec ¶
func (mr *MockGaugeMockRecorder) Dec() *gomock.Call
Dec indicates an expected call of Dec.
func (*MockGaugeMockRecorder) Desc ¶
func (mr *MockGaugeMockRecorder) Desc() *gomock.Call
Desc indicates an expected call of Desc.
func (*MockGaugeMockRecorder) Describe ¶
func (mr *MockGaugeMockRecorder) Describe(arg0 any) *gomock.Call
Describe indicates an expected call of Describe.
func (*MockGaugeMockRecorder) Inc ¶
func (mr *MockGaugeMockRecorder) Inc() *gomock.Call
Inc indicates an expected call of Inc.
func (*MockGaugeMockRecorder) Set ¶
func (mr *MockGaugeMockRecorder) Set(arg0 any) *gomock.Call
Set indicates an expected call of Set.
func (*MockGaugeMockRecorder) SetToCurrentTime ¶
func (mr *MockGaugeMockRecorder) SetToCurrentTime() *gomock.Call
SetToCurrentTime indicates an expected call of SetToCurrentTime.
type MockMetricsCollector ¶
type MockMetricsCollector struct {
// contains filtered or unexported fields
}
MockMetricsCollector is a mock of MetricsCollector interface.
func NewMockMetricsCollector ¶
func NewMockMetricsCollector(ctrl *gomock.Controller) *MockMetricsCollector
NewMockMetricsCollector creates a new mock instance.
func (*MockMetricsCollector) Connections ¶
func (m *MockMetricsCollector) Connections() prometheus.Gauge
Connections mocks base method.
func (*MockMetricsCollector) EXPECT ¶
func (m *MockMetricsCollector) EXPECT() *MockMetricsCollectorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMetricsCollector) LogReadCount ¶
func (m *MockMetricsCollector) LogReadCount(arg0, arg1 string) prometheus.Counter
LogReadCount mocks base method.
func (*MockMetricsCollector) LogWriteCount ¶
func (m *MockMetricsCollector) LogWriteCount(arg0, arg1 string) prometheus.Counter
LogWriteCount mocks base method.
func (*MockMetricsCollector) PingFailureCount ¶
func (m *MockMetricsCollector) PingFailureCount(arg0 string) prometheus.Counter
PingFailureCount mocks base method.
func (*MockMetricsCollector) TotalConnections ¶
func (m *MockMetricsCollector) TotalConnections() prometheus.Counter
TotalConnections mocks base method.
type MockMetricsCollectorMockRecorder ¶
type MockMetricsCollectorMockRecorder struct {
// contains filtered or unexported fields
}
MockMetricsCollectorMockRecorder is the mock recorder for MockMetricsCollector.
func (*MockMetricsCollectorMockRecorder) Connections ¶
func (mr *MockMetricsCollectorMockRecorder) Connections() *gomock.Call
Connections indicates an expected call of Connections.
func (*MockMetricsCollectorMockRecorder) LogReadCount ¶
func (mr *MockMetricsCollectorMockRecorder) LogReadCount(arg0, arg1 any) *gomock.Call
LogReadCount indicates an expected call of LogReadCount.
func (*MockMetricsCollectorMockRecorder) LogWriteCount ¶
func (mr *MockMetricsCollectorMockRecorder) LogWriteCount(arg0, arg1 any) *gomock.Call
LogWriteCount indicates an expected call of LogWriteCount.
func (*MockMetricsCollectorMockRecorder) PingFailureCount ¶
func (mr *MockMetricsCollectorMockRecorder) PingFailureCount(arg0 any) *gomock.Call
PingFailureCount indicates an expected call of PingFailureCount.
func (*MockMetricsCollectorMockRecorder) TotalConnections ¶
func (mr *MockMetricsCollectorMockRecorder) TotalConnections() *gomock.Call
TotalConnections indicates an expected call of TotalConnections.