Documentation ¶
Overview ¶
Package mock_event_bus is a generated GoMock package.
Index ¶
- type MockInterface
- func (m *MockInterface) AddListener(listener *event_bus.EventBusListener)
- func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) PublishMessage(eventMsg models.EventInterface) error
- func (m *MockInterface) RemoveListener(listener *event_bus.EventBusListener)
- func (m *MockInterface) TotalListenersByRoom(room string) int
- func (m *MockInterface) TotalRooms() int
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) AddListener(listener interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) PublishMessage(eventMsg interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) RemoveListener(listener interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) TotalListenersByRoom(room interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) TotalRooms() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockInterface ¶
type MockInterface struct {
// contains filtered or unexported fields
}
MockInterface is a mock of Interface interface.
func NewMockInterface ¶
func NewMockInterface(ctrl *gomock.Controller) *MockInterface
NewMockInterface creates a new mock instance.
func (*MockInterface) AddListener ¶
func (m *MockInterface) AddListener(listener *event_bus.EventBusListener)
AddListener mocks base method.
func (*MockInterface) EXPECT ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInterface) PublishMessage ¶
func (m *MockInterface) PublishMessage(eventMsg models.EventInterface) error
PublishMessage mocks base method.
func (*MockInterface) RemoveListener ¶
func (m *MockInterface) RemoveListener(listener *event_bus.EventBusListener)
RemoveListener mocks base method.
func (*MockInterface) TotalListenersByRoom ¶
func (m *MockInterface) TotalListenersByRoom(room string) int
TotalListenersByRoom mocks base method.
func (*MockInterface) TotalRooms ¶
func (m *MockInterface) TotalRooms() int
TotalRooms mocks base method.
type MockInterfaceMockRecorder ¶
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface.
func (*MockInterfaceMockRecorder) AddListener ¶
func (mr *MockInterfaceMockRecorder) AddListener(listener interface{}) *gomock.Call
AddListener indicates an expected call of AddListener.
func (*MockInterfaceMockRecorder) PublishMessage ¶
func (mr *MockInterfaceMockRecorder) PublishMessage(eventMsg interface{}) *gomock.Call
PublishMessage indicates an expected call of PublishMessage.
func (*MockInterfaceMockRecorder) RemoveListener ¶
func (mr *MockInterfaceMockRecorder) RemoveListener(listener interface{}) *gomock.Call
RemoveListener indicates an expected call of RemoveListener.
func (*MockInterfaceMockRecorder) TotalListenersByRoom ¶
func (mr *MockInterfaceMockRecorder) TotalListenersByRoom(room interface{}) *gomock.Call
TotalListenersByRoom indicates an expected call of TotalListenersByRoom.
func (*MockInterfaceMockRecorder) TotalRooms ¶
func (mr *MockInterfaceMockRecorder) TotalRooms() *gomock.Call
TotalRooms indicates an expected call of TotalRooms.