Documentation ¶
Overview ¶
Package mock_instrument is a generated GoMock package.
Index ¶
- type MockInterface
- func (m *MockInterface) DatabaseQueryTimer(dbname, conntype, queryname string) *prometheus.Timer
- func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) HTTPRequestCounter(path, method string)
- func (m *MockInterface) HTTPRequestTimer(path, method string) *prometheus.Timer
- func (m *MockInterface) HTTPResponseStatusCounter(code int)
- func (m *MockInterface) IsEnabled() bool
- func (m *MockInterface) MetricsHandler() http.Handler
- func (m *MockInterface) RegisterDBStats(db *sql.DB, dbname string)
- func (m *MockInterface) SchedulerRunningCounter(schedulername string)
- func (m *MockInterface) SchedulerRunningTimer(schedulername string) *prometheus.Timer
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) DatabaseQueryTimer(dbname, conntype, queryname any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) HTTPRequestCounter(path, method any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) HTTPRequestTimer(path, method any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) HTTPResponseStatusCounter(code any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) IsEnabled() *gomock.Call
- func (mr *MockInterfaceMockRecorder) MetricsHandler() *gomock.Call
- func (mr *MockInterfaceMockRecorder) RegisterDBStats(db, dbname any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) SchedulerRunningCounter(schedulername any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) SchedulerRunningTimer(schedulername any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockInterface ¶
type MockInterface struct {
// contains filtered or unexported fields
}
MockInterface is a mock of Interface interface.
func NewMockInterface ¶
func NewMockInterface(ctrl *gomock.Controller) *MockInterface
NewMockInterface creates a new mock instance.
func (*MockInterface) DatabaseQueryTimer ¶
func (m *MockInterface) DatabaseQueryTimer(dbname, conntype, queryname string) *prometheus.Timer
DatabaseQueryTimer mocks base method.
func (*MockInterface) EXPECT ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInterface) HTTPRequestCounter ¶
func (m *MockInterface) HTTPRequestCounter(path, method string)
HTTPRequestCounter mocks base method.
func (*MockInterface) HTTPRequestTimer ¶
func (m *MockInterface) HTTPRequestTimer(path, method string) *prometheus.Timer
HTTPRequestTimer mocks base method.
func (*MockInterface) HTTPResponseStatusCounter ¶
func (m *MockInterface) HTTPResponseStatusCounter(code int)
HTTPResponseStatusCounter mocks base method.
func (*MockInterface) IsEnabled ¶
func (m *MockInterface) IsEnabled() bool
IsEnabled mocks base method.
func (*MockInterface) MetricsHandler ¶
func (m *MockInterface) MetricsHandler() http.Handler
MetricsHandler mocks base method.
func (*MockInterface) RegisterDBStats ¶
func (m *MockInterface) RegisterDBStats(db *sql.DB, dbname string)
RegisterDBStats mocks base method.
func (*MockInterface) SchedulerRunningCounter ¶
func (m *MockInterface) SchedulerRunningCounter(schedulername string)
SchedulerRunningCounter mocks base method.
func (*MockInterface) SchedulerRunningTimer ¶
func (m *MockInterface) SchedulerRunningTimer(schedulername string) *prometheus.Timer
SchedulerRunningTimer mocks base method.
type MockInterfaceMockRecorder ¶
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface.
func (*MockInterfaceMockRecorder) DatabaseQueryTimer ¶
func (mr *MockInterfaceMockRecorder) DatabaseQueryTimer(dbname, conntype, queryname any) *gomock.Call
DatabaseQueryTimer indicates an expected call of DatabaseQueryTimer.
func (*MockInterfaceMockRecorder) HTTPRequestCounter ¶
func (mr *MockInterfaceMockRecorder) HTTPRequestCounter(path, method any) *gomock.Call
HTTPRequestCounter indicates an expected call of HTTPRequestCounter.
func (*MockInterfaceMockRecorder) HTTPRequestTimer ¶
func (mr *MockInterfaceMockRecorder) HTTPRequestTimer(path, method any) *gomock.Call
HTTPRequestTimer indicates an expected call of HTTPRequestTimer.
func (*MockInterfaceMockRecorder) HTTPResponseStatusCounter ¶
func (mr *MockInterfaceMockRecorder) HTTPResponseStatusCounter(code any) *gomock.Call
HTTPResponseStatusCounter indicates an expected call of HTTPResponseStatusCounter.
func (*MockInterfaceMockRecorder) IsEnabled ¶
func (mr *MockInterfaceMockRecorder) IsEnabled() *gomock.Call
IsEnabled indicates an expected call of IsEnabled.
func (*MockInterfaceMockRecorder) MetricsHandler ¶
func (mr *MockInterfaceMockRecorder) MetricsHandler() *gomock.Call
MetricsHandler indicates an expected call of MetricsHandler.
func (*MockInterfaceMockRecorder) RegisterDBStats ¶
func (mr *MockInterfaceMockRecorder) RegisterDBStats(db, dbname any) *gomock.Call
RegisterDBStats indicates an expected call of RegisterDBStats.
func (*MockInterfaceMockRecorder) SchedulerRunningCounter ¶
func (mr *MockInterfaceMockRecorder) SchedulerRunningCounter(schedulername any) *gomock.Call
SchedulerRunningCounter indicates an expected call of SchedulerRunningCounter.
func (*MockInterfaceMockRecorder) SchedulerRunningTimer ¶
func (mr *MockInterfaceMockRecorder) SchedulerRunningTimer(schedulername any) *gomock.Call
SchedulerRunningTimer indicates an expected call of SchedulerRunningTimer.