mocks

package
v1.18.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppServerFactory

type AppServerFactory struct {
	mock.Mock
}

AppServerFactory is an autogenerated mock type for the AppServerFactory type

func NewAppServerFactory added in v1.11.21

func NewAppServerFactory(t interface {
	mock.TestingT
	Cleanup(func())
}) *AppServerFactory

NewAppServerFactory creates a new instance of AppServerFactory. 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 (*AppServerFactory) Name

func (_m *AppServerFactory) Name() string

Name provides a mock function with given fields:

func (*AppServerFactory) Serve

func (_m *AppServerFactory) Serve()

Serve provides a mock function with given fields:

func (*AppServerFactory) Shutdown

func (_m *AppServerFactory) Shutdown(ctx context.Context)

Shutdown provides a mock function with given fields: ctx

type ModuleFactory

type ModuleFactory struct {
	mock.Mock
}

ModuleFactory is an autogenerated mock type for the ModuleFactory type

func NewModuleFactory added in v1.11.21

func NewModuleFactory(t interface {
	mock.TestingT
	Cleanup(func())
}) *ModuleFactory

NewModuleFactory creates a new instance of ModuleFactory. 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 (*ModuleFactory) GRPCHandler

func (_m *ModuleFactory) GRPCHandler() interfaces.GRPCHandler

GRPCHandler provides a mock function with given fields:

func (*ModuleFactory) GraphQLHandler

func (_m *ModuleFactory) GraphQLHandler() interfaces.GraphQLHandler

GraphQLHandler provides a mock function with given fields:

func (*ModuleFactory) Name

func (_m *ModuleFactory) Name() types.Module

Name provides a mock function with given fields:

func (*ModuleFactory) RESTHandler

func (_m *ModuleFactory) RESTHandler() interfaces.RESTHandler

RESTHandler provides a mock function with given fields:

func (*ModuleFactory) ServerHandler added in v1.7.0

func (_m *ModuleFactory) ServerHandler(serverType types.Server) interfaces.ServerHandler

ServerHandler provides a mock function with given fields: serverType

func (*ModuleFactory) WorkerHandler

func (_m *ModuleFactory) WorkerHandler(workerType types.Worker) interfaces.WorkerHandler

WorkerHandler provides a mock function with given fields: workerType

type ServiceFactory

type ServiceFactory struct {
	mock.Mock
}

ServiceFactory is an autogenerated mock type for the ServiceFactory type

func NewServiceFactory added in v1.11.21

func NewServiceFactory(t interface {
	mock.TestingT
	Cleanup(func())
}) *ServiceFactory

NewServiceFactory creates a new instance of ServiceFactory. 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 (*ServiceFactory) GetApplications

func (_m *ServiceFactory) GetApplications() []factory.AppServerFactory

GetApplications provides a mock function with given fields:

func (*ServiceFactory) GetConfig

func (_m *ServiceFactory) GetConfig() *config.Config

GetConfig provides a mock function with given fields:

func (*ServiceFactory) GetDependency

func (_m *ServiceFactory) GetDependency() dependency.Dependency

GetDependency provides a mock function with given fields:

func (*ServiceFactory) GetModules

func (_m *ServiceFactory) GetModules() []factory.ModuleFactory

GetModules provides a mock function with given fields:

func (*ServiceFactory) Name

func (_m *ServiceFactory) Name() types.Service

Name provides a mock function with given fields:

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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