Documentation ¶
Index ¶
- type MsgBusHandlerInterface
- func (_m *MsgBusHandlerInterface) CreateServiceMsgBusHandler() error
- func (_m *MsgBusHandlerInterface) Publish(service string, key string, msg *anypb.Any) error
- func (_m *MsgBusHandlerInterface) RemoveServiceQueueListening(service string) error
- func (_m *MsgBusHandlerInterface) RemoveServiceQueuePublisher(service string) error
- func (_m *MsgBusHandlerInterface) StopServiceQueueHandler(service string) error
- func (_m *MsgBusHandlerInterface) UpdateServiceQueueHandler(s *db.Service) error
- type RouteRepo
- type ServiceRepo
- func (_m *ServiceRepo) AddRoute(s *db.Service, rt *db.Route) error
- func (_m *ServiceRepo) Get(serviceUuid string) (*db.Service, error)
- func (_m *ServiceRepo) GetRoutes(serviceId string) ([]db.Route, error)
- func (_m *ServiceRepo) List() ([]db.Service, error)
- func (_m *ServiceRepo) Register(service *db.Service) (*db.Service, error)
- func (_m *ServiceRepo) RemoveRoutes(service *db.Service) error
- func (_m *ServiceRepo) UnRegister(serviceId string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MsgBusHandlerInterface ¶
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 ¶
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 ¶
RouteRepo is an autogenerated mock type for the RouteRepo type
func NewRouteRepo ¶
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.
type ServiceRepo ¶
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) 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) 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