msghandler

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-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 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

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.

Jump to

Keyboard shortcuts

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