mocks

package
v0.0.0-...-2119b44 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MsgBusHandlerInterface

type MsgBusHandlerInterface struct {
	mock.Mock
}

MsgBusHandlerInterface is an autogenerated mock type for the MsgBusHandlerInterface type

func NewMsgBusHandlerInterface

func NewMsgBusHandlerInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *MsgBusHandlerInterface

NewMsgBusHandlerInterface creates a new instance of MsgBusHandlerInterface. 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 (*MsgBusHandlerInterface) CreateServiceMsgBusHandler

func (_m *MsgBusHandlerInterface) CreateServiceMsgBusHandler() error

CreateServiceMsgBusHandler provides a mock function with given fields:

func (*MsgBusHandlerInterface) Publish

func (_m *MsgBusHandlerInterface) Publish(service string, key string, msg *anypb.Any) error

Publish provides a mock function with given fields: service, key, msg

func (*MsgBusHandlerInterface) RemoveServiceQueueListening

func (_m *MsgBusHandlerInterface) RemoveServiceQueueListening(service string) error

RemoveServiceQueueListening provides a mock function with given fields: service

func (*MsgBusHandlerInterface) RemoveServiceQueuePublisher

func (_m *MsgBusHandlerInterface) RemoveServiceQueuePublisher(service string) error

RemoveServiceQueuePublisher provides a mock function with given fields: service

func (*MsgBusHandlerInterface) StopServiceQueueHandler

func (_m *MsgBusHandlerInterface) StopServiceQueueHandler(service string) error

StopServiceQueueHandler provides a mock function with given fields: service

func (*MsgBusHandlerInterface) UpdateServiceQueueHandler

func (_m *MsgBusHandlerInterface) UpdateServiceQueueHandler(s *db.Service) error

UpdateServiceQueueHandler provides a mock function with given fields: s

type RouteRepo

type RouteRepo struct {
	mock.Mock
}

RouteRepo is an autogenerated mock type for the RouteRepo type

func NewRouteRepo

func NewRouteRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *RouteRepo

NewRouteRepo creates a new instance of RouteRepo. 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 (*RouteRepo) Add

func (_m *RouteRepo) Add(key string) (*db.Route, error)

Add provides a mock function with given fields: key

func (*RouteRepo) Get

func (_m *RouteRepo) Get(key string) (*db.Route, error)

Get provides a mock function with given fields: key

func (*RouteRepo) List

func (_m *RouteRepo) List() ([]db.Route, error)

List provides a mock function with given fields:

func (*RouteRepo) Remove

func (_m *RouteRepo) Remove(key string) error

Remove provides a mock function with given fields: key

type ServiceRepo

type ServiceRepo struct {
	mock.Mock
}

ServiceRepo is an autogenerated mock type for the ServiceRepo type

func NewServiceRepo

func NewServiceRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *ServiceRepo

NewServiceRepo creates a new instance of ServiceRepo. 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 (*ServiceRepo) AddRoute

func (_m *ServiceRepo) AddRoute(s *db.Service, rt *db.Route) error

AddRoute provides a mock function with given fields: s, rt

func (*ServiceRepo) Get

func (_m *ServiceRepo) Get(serviceUuid string) (*db.Service, error)

Get provides a mock function with given fields: serviceUuid

func (*ServiceRepo) GetRoutes

func (_m *ServiceRepo) GetRoutes(serviceId string) ([]db.Route, error)

GetRoutes provides a mock function with given fields: serviceId

func (*ServiceRepo) List

func (_m *ServiceRepo) List() ([]db.Service, error)

List provides a mock function with given fields:

func (*ServiceRepo) Register

func (_m *ServiceRepo) Register(service *db.Service) (*db.Service, error)

Register provides a mock function with given fields: service

func (*ServiceRepo) RemoveRoutes

func (_m *ServiceRepo) RemoveRoutes(service *db.Service) error

RemoveRoutes provides a mock function with given fields: service

func (*ServiceRepo) UnRegister

func (_m *ServiceRepo) UnRegister(serviceId string) error

UnRegister provides a mock function with given fields: serviceId

Jump to

Keyboard shortcuts

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