mock

package
v14.2.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockIngest

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

MockIngest is a mock of Ingest interface.

func NewMockIngest

func NewMockIngest(ctrl *gomock.Controller) *MockIngest

NewMockIngest creates a new mock instance.

func (*MockIngest) EXPECT

func (m *MockIngest) EXPECT() *MockIngestMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockIngest) IngestMetric

func (m *MockIngest) IngestMetric(metric *samplers.UDPMetric)

IngestMetric mocks base method.

type MockIngestMockRecorder

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

MockIngestMockRecorder is the mock recorder for MockIngest.

func (*MockIngestMockRecorder) IngestMetric

func (mr *MockIngestMockRecorder) IngestMetric(metric interface{}) *gomock.Call

IngestMetric indicates an expected call of IngestMetric.

type MockSource

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

MockSource is a mock of Source interface.

func NewMockSource

func NewMockSource(ctrl *gomock.Controller) *MockSource

NewMockSource creates a new mock instance.

func (*MockSource) EXPECT

func (m *MockSource) EXPECT() *MockSourceMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSource) Name

func (m *MockSource) Name() string

Name mocks base method.

func (*MockSource) Start

func (m *MockSource) Start(ingest sources.Ingest) error

Start mocks base method.

func (*MockSource) Stop

func (m *MockSource) Stop()

Stop mocks base method.

type MockSourceConfig

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

MockSourceConfig is a mock of SourceConfig interface.

func NewMockSourceConfig

func NewMockSourceConfig(ctrl *gomock.Controller) *MockSourceConfig

NewMockSourceConfig creates a new mock instance.

func (*MockSourceConfig) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

type MockSourceConfigMockRecorder

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

MockSourceConfigMockRecorder is the mock recorder for MockSourceConfig.

type MockSourceFactory

type MockSourceFactory struct {
	Controller *gomock.Controller
	Sources    map[string]*MockSource
}

func (*MockSourceFactory) Create

func (factory *MockSourceFactory) Create(
	server *veneur.Server, name string, logger *logrus.Entry,
	sourceConfig veneur.ParsedSourceConfig, ingest sources.Ingest,
) (sources.Source, error)

type MockSourceMockRecorder

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

MockSourceMockRecorder is the mock recorder for MockSource.

func (*MockSourceMockRecorder) Name

func (mr *MockSourceMockRecorder) Name() *gomock.Call

Name indicates an expected call of Name.

func (*MockSourceMockRecorder) Start

func (mr *MockSourceMockRecorder) Start(ingest interface{}) *gomock.Call

Start indicates an expected call of Start.

func (*MockSourceMockRecorder) Stop

func (mr *MockSourceMockRecorder) Stop() *gomock.Call

Stop indicates an expected call of Stop.

Jump to

Keyboard shortcuts

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