mocks

package
v0.0.0-...-c846bbc Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockMonitorClient

type MockMonitorClient struct {
	mock.Mock
}

MockMonitorClient is an autogenerated mock type for the MonitorClient type

func NewMockMonitorClient

func NewMockMonitorClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockMonitorClient

NewMockMonitorClient creates a new instance of MockMonitorClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockMonitorClient) GetMetricHttpHandler

func (_m *MockMonitorClient) GetMetricHttpHandler() http.Handler

GetMetricHttpHandler provides a mock function with given fields:

func (*MockMonitorClient) GetMetricType

func (_m *MockMonitorClient) GetMetricType() monitor.MetricType

GetMetricType provides a mock function with given fields:

func (*MockMonitorClient) MonitorCounters

func (_m *MockMonitorClient) MonitorCounters(tag monitor.MetricTag, labels map[string]string)

MonitorCounters provides a mock function with given fields: tag, labels

func (*MockMonitorClient) MonitorDBQueryDuration

func (_m *MockMonitorClient) MonitorDBQueryDuration(duration time.Duration, tag monitor.MetricTag, labels monitor.DBQueryLabels)

MonitorDBQueryDuration provides a mock function with given fields: duration, tag, labels

func (*MockMonitorClient) MonitorDuration

func (_m *MockMonitorClient) MonitorDuration(duration time.Duration, tag monitor.MetricTag, labels map[string]string)

MonitorDuration provides a mock function with given fields: duration, tag, labels

func (*MockMonitorClient) MonitorHistogram

func (_m *MockMonitorClient) MonitorHistogram(value float64, tag monitor.MetricTag, labels map[string]string)

MonitorHistogram provides a mock function with given fields: value, tag, labels

func (*MockMonitorClient) MonitorHttpRequestDuration

func (_m *MockMonitorClient) MonitorHttpRequestDuration(duration time.Duration, labels monitor.HttpRequestLabels)

MonitorHttpRequestDuration provides a mock function with given fields: duration, labels

type MockMonitorService

type MockMonitorService struct {
	mock.Mock
}

MockMonitorService is an autogenerated mock type for the MonitorServiceInterface type

func NewMockMonitorService

func NewMockMonitorService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockMonitorService

NewMockMonitorService creates a new instance of MockMonitorService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockMonitorService) GetMetricHttpHandler

func (_m *MockMonitorService) GetMetricHttpHandler() (http.Handler, error)

GetMetricHttpHandler provides a mock function with given fields:

func (*MockMonitorService) GetMetricType

func (_m *MockMonitorService) GetMetricType() (monitor.MetricType, error)

GetMetricType provides a mock function with given fields:

func (*MockMonitorService) MonitorCounters

func (_m *MockMonitorService) MonitorCounters(tag monitor.MetricTag, labels map[string]string) error

MonitorCounters provides a mock function with given fields: tag, labels

func (*MockMonitorService) MonitorDBQueryDuration

func (_m *MockMonitorService) MonitorDBQueryDuration(duration time.Duration, tag monitor.MetricTag, labels monitor.DBQueryLabels) error

MonitorDBQueryDuration provides a mock function with given fields: duration, tag, labels

func (*MockMonitorService) MonitorDuration

func (_m *MockMonitorService) MonitorDuration(duration time.Duration, tag monitor.MetricTag, labels map[string]string) error

MonitorDuration provides a mock function with given fields: duration, tag, labels

func (*MockMonitorService) MonitorHistogram

func (_m *MockMonitorService) MonitorHistogram(value float64, tag monitor.MetricTag, labels map[string]string) error

MonitorHistogram provides a mock function with given fields: value, tag, labels

func (*MockMonitorService) MonitorHttpRequestDuration

func (_m *MockMonitorService) MonitorHttpRequestDuration(duration time.Duration, labels monitor.HttpRequestLabels) error

MonitorHttpRequestDuration provides a mock function with given fields: duration, labels

func (*MockMonitorService) Start

Start provides a mock function with given fields: opts

Jump to

Keyboard shortcuts

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