mock

package
v0.0.0-...-8450a52 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

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 MockAppBearer

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

MockAppBearer is a mock of AppBearer interface.

func NewMockAppBearer

func NewMockAppBearer(ctrl *gomock.Controller) *MockAppBearer

NewMockAppBearer creates a new mock instance.

func (*MockAppBearer) Config

func (m *MockAppBearer) Config() core.AppConfig

Config mocks base method.

func (*MockAppBearer) DownStreamPlugins

func (m *MockAppBearer) DownStreamPlugins() []core.DownStreamPlugin

DownStreamPlugins mocks base method.

func (*MockAppBearer) EXPECT

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

func (*MockAppBearer) InjectDownStreamPlugin

func (m *MockAppBearer) InjectDownStreamPlugin(InjectedDownStreamPlugin core.DownStreamPlugin)

InjectDownStreamPlugin mocks base method.

func (*MockAppBearer) MetricProvider

func (m *MockAppBearer) MetricProvider() (core.Metric, error)

MetricProvider mocks base method.

func (*MockAppBearer) SetMetricProvider

func (m *MockAppBearer) SetMetricProvider(metricProvider core.Metric)

SetMetricProvider mocks base method.

type MockAppBearerMockRecorder

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

MockAppBearerMockRecorder is the mock recorder for MockAppBearer.

func (*MockAppBearerMockRecorder) Config

func (mr *MockAppBearerMockRecorder) Config() *gomock.Call

Config indicates an expected call of Config.

func (*MockAppBearerMockRecorder) DownStreamPlugins

func (mr *MockAppBearerMockRecorder) DownStreamPlugins() *gomock.Call

DownStreamPlugins indicates an expected call of DownStreamPlugins.

func (*MockAppBearerMockRecorder) InjectDownStreamPlugin

func (mr *MockAppBearerMockRecorder) InjectDownStreamPlugin(InjectedDownStreamPlugin interface{}) *gomock.Call

InjectDownStreamPlugin indicates an expected call of InjectDownStreamPlugin.

func (*MockAppBearerMockRecorder) MetricProvider

func (mr *MockAppBearerMockRecorder) MetricProvider() *gomock.Call

MetricProvider indicates an expected call of MetricProvider.

func (*MockAppBearerMockRecorder) SetMetricProvider

func (mr *MockAppBearerMockRecorder) SetMetricProvider(metricProvider interface{}) *gomock.Call

SetMetricProvider indicates an expected call of SetMetricProvider.

type MockAppConfig

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

MockAppConfig is a mock of AppConfig interface.

func NewMockAppConfig

func NewMockAppConfig(ctrl *gomock.Controller) *MockAppConfig

NewMockAppConfig creates a new mock instance.

func (*MockAppConfig) BasicAuthPassword

func (m *MockAppConfig) BasicAuthPassword() string

BasicAuthPassword mocks base method.

func (*MockAppConfig) BasicAuthUsername

func (m *MockAppConfig) BasicAuthUsername() string

BasicAuthUsername mocks base method.

func (*MockAppConfig) Dump

func (m *MockAppConfig) Dump() string

Dump mocks base method.

func (*MockAppConfig) EXPECT

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

func (*MockAppConfig) PluginExists

func (m *MockAppConfig) PluginExists(pluginName string) bool

PluginExists mocks base method.

func (*MockAppConfig) Plugins

func (m *MockAppConfig) Plugins() []string

Plugins mocks base method.

func (*MockAppConfig) Port

func (m *MockAppConfig) Port() int

Port mocks base method.

func (*MockAppConfig) ProxyHost

func (m *MockAppConfig) ProxyHost() string

ProxyHost mocks base method.

type MockAppConfigMockRecorder

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

MockAppConfigMockRecorder is the mock recorder for MockAppConfig.

func (*MockAppConfigMockRecorder) BasicAuthPassword

func (mr *MockAppConfigMockRecorder) BasicAuthPassword() *gomock.Call

BasicAuthPassword indicates an expected call of BasicAuthPassword.

func (*MockAppConfigMockRecorder) BasicAuthUsername

func (mr *MockAppConfigMockRecorder) BasicAuthUsername() *gomock.Call

BasicAuthUsername indicates an expected call of BasicAuthUsername.

func (*MockAppConfigMockRecorder) Dump

Dump indicates an expected call of Dump.

func (*MockAppConfigMockRecorder) PluginExists

func (mr *MockAppConfigMockRecorder) PluginExists(pluginName interface{}) *gomock.Call

PluginExists indicates an expected call of PluginExists.

func (*MockAppConfigMockRecorder) Plugins

func (mr *MockAppConfigMockRecorder) Plugins() *gomock.Call

Plugins indicates an expected call of Plugins.

func (*MockAppConfigMockRecorder) Port

Port indicates an expected call of Port.

func (*MockAppConfigMockRecorder) ProxyHost

func (mr *MockAppConfigMockRecorder) ProxyHost() *gomock.Call

ProxyHost indicates an expected call of ProxyHost.

type MockAppLoader

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

MockAppLoader is a mock of AppLoader interface.

func NewMockAppLoader

func NewMockAppLoader(ctrl *gomock.Controller) *MockAppLoader

NewMockAppLoader creates a new mock instance.

func (*MockAppLoader) Compile

func (m *MockAppLoader) Compile(configPath string) (core.AppConfig, error)

Compile mocks base method.

func (*MockAppLoader) EXPECT

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

type MockAppLoaderMockRecorder

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

MockAppLoaderMockRecorder is the mock recorder for MockAppLoader.

func (*MockAppLoaderMockRecorder) Compile

func (mr *MockAppLoaderMockRecorder) Compile(configPath interface{}) *gomock.Call

Compile indicates an expected call of Compile.

type MockDatabaseBearer

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

MockDatabaseBearer is a mock of DatabaseBearer interface.

func NewMockDatabaseBearer

func NewMockDatabaseBearer(ctrl *gomock.Controller) *MockDatabaseBearer

NewMockDatabaseBearer creates a new mock instance.

func (*MockDatabaseBearer) Database

func (m *MockDatabaseBearer) Database(dbName string) (db.DB, core.DatabaseConfig, error)

Database mocks base method.

func (*MockDatabaseBearer) EXPECT

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

type MockDatabaseBearerMockRecorder

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

MockDatabaseBearerMockRecorder is the mock recorder for MockDatabaseBearer.

func (*MockDatabaseBearerMockRecorder) Database

func (mr *MockDatabaseBearerMockRecorder) Database(dbName interface{}) *gomock.Call

Database indicates an expected call of Database.

type MockDatabaseConfig

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

MockDatabaseConfig is a mock of DatabaseConfig interface.

func NewMockDatabaseConfig

func NewMockDatabaseConfig(ctrl *gomock.Controller) *MockDatabaseConfig

NewMockDatabaseConfig creates a new mock instance.

func (*MockDatabaseConfig) DBConnectionMaxLifetime

func (m *MockDatabaseConfig) DBConnectionMaxLifetime() (time.Duration, error)

DBConnectionMaxLifetime mocks base method.

func (*MockDatabaseConfig) DBDatabase

func (m *MockDatabaseConfig) DBDatabase() string

DBDatabase mocks base method.

func (*MockDatabaseConfig) DBHost

func (m *MockDatabaseConfig) DBHost() string

DBHost mocks base method.

func (*MockDatabaseConfig) DBMaxIddleConn

func (m *MockDatabaseConfig) DBMaxIddleConn() (int, error)

DBMaxIddleConn mocks base method.

func (*MockDatabaseConfig) DBMaxOpenConn

func (m *MockDatabaseConfig) DBMaxOpenConn() (int, error)

DBMaxOpenConn mocks base method.

func (*MockDatabaseConfig) DBMigrationSource

func (m *MockDatabaseConfig) DBMigrationSource() string

DBMigrationSource mocks base method.

func (*MockDatabaseConfig) DBPassword

func (m *MockDatabaseConfig) DBPassword() string

DBPassword mocks base method.

func (*MockDatabaseConfig) DBPort

func (m *MockDatabaseConfig) DBPort() (int, error)

DBPort mocks base method.

func (*MockDatabaseConfig) DBUsername

func (m *MockDatabaseConfig) DBUsername() string

DBUsername mocks base method.

func (*MockDatabaseConfig) Driver

func (m *MockDatabaseConfig) Driver() string

Driver mocks base method.

func (*MockDatabaseConfig) Dump

func (m *MockDatabaseConfig) Dump() string

Dump mocks base method.

func (*MockDatabaseConfig) EXPECT

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

type MockDatabaseConfigMockRecorder

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

MockDatabaseConfigMockRecorder is the mock recorder for MockDatabaseConfig.

func (*MockDatabaseConfigMockRecorder) DBConnectionMaxLifetime

func (mr *MockDatabaseConfigMockRecorder) DBConnectionMaxLifetime() *gomock.Call

DBConnectionMaxLifetime indicates an expected call of DBConnectionMaxLifetime.

func (*MockDatabaseConfigMockRecorder) DBDatabase

func (mr *MockDatabaseConfigMockRecorder) DBDatabase() *gomock.Call

DBDatabase indicates an expected call of DBDatabase.

func (*MockDatabaseConfigMockRecorder) DBHost

DBHost indicates an expected call of DBHost.

func (*MockDatabaseConfigMockRecorder) DBMaxIddleConn

func (mr *MockDatabaseConfigMockRecorder) DBMaxIddleConn() *gomock.Call

DBMaxIddleConn indicates an expected call of DBMaxIddleConn.

func (*MockDatabaseConfigMockRecorder) DBMaxOpenConn

func (mr *MockDatabaseConfigMockRecorder) DBMaxOpenConn() *gomock.Call

DBMaxOpenConn indicates an expected call of DBMaxOpenConn.

func (*MockDatabaseConfigMockRecorder) DBMigrationSource

func (mr *MockDatabaseConfigMockRecorder) DBMigrationSource() *gomock.Call

DBMigrationSource indicates an expected call of DBMigrationSource.

func (*MockDatabaseConfigMockRecorder) DBPassword

func (mr *MockDatabaseConfigMockRecorder) DBPassword() *gomock.Call

DBPassword indicates an expected call of DBPassword.

func (*MockDatabaseConfigMockRecorder) DBPort

DBPort indicates an expected call of DBPort.

func (*MockDatabaseConfigMockRecorder) DBUsername

func (mr *MockDatabaseConfigMockRecorder) DBUsername() *gomock.Call

DBUsername indicates an expected call of DBUsername.

func (*MockDatabaseConfigMockRecorder) Driver

Driver indicates an expected call of Driver.

func (*MockDatabaseConfigMockRecorder) Dump

Dump indicates an expected call of Dump.

type MockDatabaseLoader

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

MockDatabaseLoader is a mock of DatabaseLoader interface.

func NewMockDatabaseLoader

func NewMockDatabaseLoader(ctrl *gomock.Controller) *MockDatabaseLoader

NewMockDatabaseLoader creates a new mock instance.

func (*MockDatabaseLoader) Compile

func (m *MockDatabaseLoader) Compile(configPath string) (map[string]core.DatabaseConfig, error)

Compile mocks base method.

func (*MockDatabaseLoader) EXPECT

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

type MockDatabaseLoaderMockRecorder

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

MockDatabaseLoaderMockRecorder is the mock recorder for MockDatabaseLoader.

func (*MockDatabaseLoaderMockRecorder) Compile

func (mr *MockDatabaseLoaderMockRecorder) Compile(configPath interface{}) *gomock.Call

Compile indicates an expected call of Compile.

type MockMetricConfig

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

MockMetricConfig is a mock of MetricConfig interface.

func NewMockMetricConfig

func NewMockMetricConfig(ctrl *gomock.Controller) *MockMetricConfig

NewMockMetricConfig creates a new mock instance.

func (*MockMetricConfig) EXPECT

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

func (*MockMetricConfig) Interface

func (m *MockMetricConfig) Interface() string

Interface mocks base method.

type MockMetricConfigMockRecorder

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

MockMetricConfigMockRecorder is the mock recorder for MockMetricConfig.

func (*MockMetricConfigMockRecorder) Interface

func (mr *MockMetricConfigMockRecorder) Interface() *gomock.Call

Interface indicates an expected call of Interface.

type MockPluginBearer

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

MockPluginBearer is a mock of PluginBearer interface.

func NewMockPluginBearer

func NewMockPluginBearer(ctrl *gomock.Controller) *MockPluginBearer

NewMockPluginBearer creates a new mock instance.

func (*MockPluginBearer) CompilePlugin

func (m *MockPluginBearer) CompilePlugin(pluginName string, injectedStruct interface{}) error

CompilePlugin mocks base method.

func (*MockPluginBearer) ConfigExists

func (m *MockPluginBearer) ConfigExists(pluginName string) bool

ConfigExists mocks base method.

func (*MockPluginBearer) EXPECT

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

func (*MockPluginBearer) ForEach

func (m *MockPluginBearer) ForEach(callbackFunc func(string) error)

ForEach mocks base method.

func (*MockPluginBearer) Length

func (m *MockPluginBearer) Length() int

Length mocks base method.

func (*MockPluginBearer) PluginVersion

func (m *MockPluginBearer) PluginVersion(pluginName string) (string, error)

PluginVersion mocks base method.

type MockPluginBearerMockRecorder

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

MockPluginBearerMockRecorder is the mock recorder for MockPluginBearer.

func (*MockPluginBearerMockRecorder) CompilePlugin

func (mr *MockPluginBearerMockRecorder) CompilePlugin(pluginName, injectedStruct interface{}) *gomock.Call

CompilePlugin indicates an expected call of CompilePlugin.

func (*MockPluginBearerMockRecorder) ConfigExists

func (mr *MockPluginBearerMockRecorder) ConfigExists(pluginName interface{}) *gomock.Call

ConfigExists indicates an expected call of ConfigExists.

func (*MockPluginBearerMockRecorder) ForEach

func (mr *MockPluginBearerMockRecorder) ForEach(callbackFunc interface{}) *gomock.Call

ForEach indicates an expected call of ForEach.

func (*MockPluginBearerMockRecorder) Length

Length indicates an expected call of Length.

func (*MockPluginBearerMockRecorder) PluginVersion

func (mr *MockPluginBearerMockRecorder) PluginVersion(pluginName interface{}) *gomock.Call

PluginVersion indicates an expected call of PluginVersion.

type MockPluginLoader

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

MockPluginLoader is a mock of PluginLoader interface.

func NewMockPluginLoader

func NewMockPluginLoader(ctrl *gomock.Controller) *MockPluginLoader

NewMockPluginLoader creates a new mock instance.

func (*MockPluginLoader) Compile

func (m *MockPluginLoader) Compile(pluginPath string) (core.PluginBearer, error)

Compile mocks base method.

func (*MockPluginLoader) EXPECT

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

type MockPluginLoaderMockRecorder

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

MockPluginLoaderMockRecorder is the mock recorder for MockPluginLoader.

func (*MockPluginLoaderMockRecorder) Compile

func (mr *MockPluginLoaderMockRecorder) Compile(pluginPath interface{}) *gomock.Call

Compile indicates an expected call of Compile.

type MockResponseWriter

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

MockResponseWriter is a mock of ResponseWriter interface

func NewMockResponseWriter

func NewMockResponseWriter(ctrl *gomock.Controller) *MockResponseWriter

NewMockResponseWriter creates a new mock instance

func (*MockResponseWriter) CloseNotify

func (m *MockResponseWriter) CloseNotify() <-chan bool

CloseNotify mocks base method

func (*MockResponseWriter) EXPECT

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

func (*MockResponseWriter) Flush

func (m *MockResponseWriter) Flush()

Flush mocks base method

func (*MockResponseWriter) Header

func (m *MockResponseWriter) Header() http.Header

Header mocks base method

func (*MockResponseWriter) Hijack

func (m *MockResponseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error)

Hijack mocks base method

func (*MockResponseWriter) Pusher

func (m *MockResponseWriter) Pusher() http.Pusher

Pusher mocks base method

func (*MockResponseWriter) Size

func (m *MockResponseWriter) Size() int

Size mocks base method

func (*MockResponseWriter) Status

func (m *MockResponseWriter) Status() int

Status mocks base method

func (*MockResponseWriter) Write

func (m *MockResponseWriter) Write(arg0 []byte) (int, error)

Write mocks base method

func (*MockResponseWriter) WriteHeader

func (m *MockResponseWriter) WriteHeader(arg0 int)

WriteHeader mocks base method

func (*MockResponseWriter) WriteHeaderNow

func (m *MockResponseWriter) WriteHeaderNow()

WriteHeaderNow mocks base method

func (*MockResponseWriter) WriteString

func (m *MockResponseWriter) WriteString(arg0 string) (int, error)

WriteString mocks base method

func (*MockResponseWriter) Written

func (m *MockResponseWriter) Written() bool

Written mocks base method

type MockResponseWriterMockRecorder

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

MockResponseWriterMockRecorder is the mock recorder for MockResponseWriter

func (*MockResponseWriterMockRecorder) CloseNotify

func (mr *MockResponseWriterMockRecorder) CloseNotify() *gomock.Call

CloseNotify indicates an expected call of CloseNotify

func (*MockResponseWriterMockRecorder) Flush

Flush indicates an expected call of Flush

func (*MockResponseWriterMockRecorder) Header

Header indicates an expected call of Header

func (*MockResponseWriterMockRecorder) Hijack

Hijack indicates an expected call of Hijack

func (*MockResponseWriterMockRecorder) Pusher

Pusher indicates an expected call of Pusher

func (*MockResponseWriterMockRecorder) Size

Size indicates an expected call of Size

func (*MockResponseWriterMockRecorder) Status

Status indicates an expected call of Status

func (*MockResponseWriterMockRecorder) Write

func (mr *MockResponseWriterMockRecorder) Write(arg0 interface{}) *gomock.Call

Write indicates an expected call of Write

func (*MockResponseWriterMockRecorder) WriteHeader

func (mr *MockResponseWriterMockRecorder) WriteHeader(arg0 interface{}) *gomock.Call

WriteHeader indicates an expected call of WriteHeader

func (*MockResponseWriterMockRecorder) WriteHeaderNow

func (mr *MockResponseWriterMockRecorder) WriteHeaderNow() *gomock.Call

WriteHeaderNow indicates an expected call of WriteHeaderNow

func (*MockResponseWriterMockRecorder) WriteString

func (mr *MockResponseWriterMockRecorder) WriteString(arg0 interface{}) *gomock.Call

WriteString indicates an expected call of WriteString

func (*MockResponseWriterMockRecorder) Written

Written indicates an expected call of Written

Jump to

Keyboard shortcuts

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