exporter

package
v0.0.0-...-0b9a0a5 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockExporter

type MockExporter struct {
	mock.Mock
}

MockExporter is an autogenerated mock type for the Exporter type

func NewMockExporter

func NewMockExporter(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockExporter

NewMockExporter creates a new instance of MockExporter. 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 (*MockExporter) Disable

func (_m *MockExporter) Disable()

Disable provides a mock function with given fields:

func (*MockExporter) EXPECT

func (_m *MockExporter) EXPECT() *MockExporter_Expecter

func (*MockExporter) Enable

func (_m *MockExporter) Enable()

Enable provides a mock function with given fields:

func (*MockExporter) Enabled

func (_m *MockExporter) Enabled() bool

Enabled provides a mock function with given fields:

func (*MockExporter) Start

func (_m *MockExporter) Start(ctx context.Context) error

Start provides a mock function with given fields: ctx

type MockExporter_Disable_Call

type MockExporter_Disable_Call struct {
	*mock.Call
}

MockExporter_Disable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Disable'

func (*MockExporter_Disable_Call) Return

func (*MockExporter_Disable_Call) Run

func (*MockExporter_Disable_Call) RunAndReturn

func (_c *MockExporter_Disable_Call) RunAndReturn(run func()) *MockExporter_Disable_Call

type MockExporter_Enable_Call

type MockExporter_Enable_Call struct {
	*mock.Call
}

MockExporter_Enable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Enable'

func (*MockExporter_Enable_Call) Return

func (*MockExporter_Enable_Call) Run

func (*MockExporter_Enable_Call) RunAndReturn

func (_c *MockExporter_Enable_Call) RunAndReturn(run func()) *MockExporter_Enable_Call

type MockExporter_Enabled_Call

type MockExporter_Enabled_Call struct {
	*mock.Call
}

MockExporter_Enabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Enabled'

func (*MockExporter_Enabled_Call) Return

func (*MockExporter_Enabled_Call) Run

func (*MockExporter_Enabled_Call) RunAndReturn

func (_c *MockExporter_Enabled_Call) RunAndReturn(run func() bool) *MockExporter_Enabled_Call

type MockExporter_Expecter

type MockExporter_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockExporter_Expecter) Disable

Disable is a helper method to define mock.On call

func (*MockExporter_Expecter) Enable

Enable is a helper method to define mock.On call

func (*MockExporter_Expecter) Enabled

Enabled is a helper method to define mock.On call

func (*MockExporter_Expecter) Start

func (_e *MockExporter_Expecter) Start(ctx interface{}) *MockExporter_Start_Call

Start is a helper method to define mock.On call

  • ctx context.Context

type MockExporter_Start_Call

type MockExporter_Start_Call struct {
	*mock.Call
}

MockExporter_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'

func (*MockExporter_Start_Call) Return

func (*MockExporter_Start_Call) Run

func (*MockExporter_Start_Call) RunAndReturn

type MockHTTPClient

type MockHTTPClient struct {
	mock.Mock
}

MockHTTPClient is an autogenerated mock type for the HTTPClient type

func NewMockHTTPClient

func NewMockHTTPClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockHTTPClient

NewMockHTTPClient creates a new instance of MockHTTPClient. 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 (*MockHTTPClient) Do

func (_m *MockHTTPClient) Do(req *http.Request) (*http.Response, error)

Do provides a mock function with given fields: req

func (*MockHTTPClient) EXPECT

type MockHTTPClient_Do_Call

type MockHTTPClient_Do_Call struct {
	*mock.Call
}

MockHTTPClient_Do_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Do'

func (*MockHTTPClient_Do_Call) Return

func (*MockHTTPClient_Do_Call) Run

func (_c *MockHTTPClient_Do_Call) Run(run func(req *http.Request)) *MockHTTPClient_Do_Call

func (*MockHTTPClient_Do_Call) RunAndReturn

func (_c *MockHTTPClient_Do_Call) RunAndReturn(run func(*http.Request) (*http.Response, error)) *MockHTTPClient_Do_Call

type MockHTTPClient_Expecter

type MockHTTPClient_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockHTTPClient_Expecter) Do

func (_e *MockHTTPClient_Expecter) Do(req interface{}) *MockHTTPClient_Do_Call

Do is a helper method to define mock.On call

  • req *http.Request

type MockMetricMapper

type MockMetricMapper struct {
	mock.Mock
}

MockMetricMapper is an autogenerated mock type for the MetricMapper type

func NewMockMetricMapper

func NewMockMetricMapper(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockMetricMapper

NewMockMetricMapper creates a new instance of MockMetricMapper. 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 (*MockMetricMapper) EXPECT

func (*MockMetricMapper) Map

Map provides a mock function with given fields: metrics

type MockMetricMapper_Expecter

type MockMetricMapper_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockMetricMapper_Expecter) Map

func (_e *MockMetricMapper_Expecter) Map(metrics interface{}) *MockMetricMapper_Map_Call

Map is a helper method to define mock.On call

  • metrics []exporter.MetricFamilyMap

type MockMetricMapper_Map_Call

type MockMetricMapper_Map_Call struct {
	*mock.Call
}

MockMetricMapper_Map_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Map'

func (*MockMetricMapper_Map_Call) Return

func (*MockMetricMapper_Map_Call) Run

func (*MockMetricMapper_Map_Call) RunAndReturn

type MockScraper

type MockScraper struct {
	mock.Mock
}

MockScraper is an autogenerated mock type for the Scraper type

func NewMockScraper

func NewMockScraper(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockScraper

NewMockScraper creates a new instance of MockScraper. 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 (*MockScraper) EXPECT

func (_m *MockScraper) EXPECT() *MockScraper_Expecter

func (*MockScraper) Scrape

func (_m *MockScraper) Scrape(ctx context.Context, urls []string) ([]exporter.MetricFamilyMap, error)

Scrape provides a mock function with given fields: ctx, urls

type MockScraper_Expecter

type MockScraper_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockScraper_Expecter) Scrape

func (_e *MockScraper_Expecter) Scrape(ctx interface{}, urls interface{}) *MockScraper_Scrape_Call

Scrape is a helper method to define mock.On call

  • ctx context.Context
  • urls []string

type MockScraper_Scrape_Call

type MockScraper_Scrape_Call struct {
	*mock.Call
}

MockScraper_Scrape_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Scrape'

func (*MockScraper_Scrape_Call) Return

func (*MockScraper_Scrape_Call) Run

func (_c *MockScraper_Scrape_Call) Run(run func(ctx context.Context, urls []string)) *MockScraper_Scrape_Call

func (*MockScraper_Scrape_Call) RunAndReturn

Jump to

Keyboard shortcuts

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