Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockMsgSvcProvider ¶
type MockMsgSvcProvider struct { RegisterErr error UnregisterErr error // contains filtered or unexported fields }
MockMsgSvcProvider is mock message handler.
func NewMockMsgServiceProvider ¶
func NewMockMsgServiceProvider() *MockMsgSvcProvider
NewMockMsgServiceProvider returns new custom mock message handler.
func (*MockMsgSvcProvider) Register ¶
func (m *MockMsgSvcProvider) Register(msgSvcs ...dispatcher.MessageService) error
Register registers given message services to this mock message handler.
func (*MockMsgSvcProvider) Services ¶
func (m *MockMsgSvcProvider) Services() []dispatcher.MessageService
Services returns message services registered to this mock message handler.
func (*MockMsgSvcProvider) Unregister ¶
func (m *MockMsgSvcProvider) Unregister(name string) error
Unregister unregisters given message services from this mock message handler.
Click to show internal directories.
Click to hide internal directories.