mock_instrument

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock_instrument is a generated GoMock package.

Index

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL