communications

package
v4.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandBusMock added in v4.8.0

type CommandBusMock struct {
	mock.Mock
}

func (*CommandBusMock) Dispatch added in v4.8.0

func (m *CommandBusMock) Dispatch(command *commands.Command) error

func (*CommandBusMock) Register added in v4.8.0

func (m *CommandBusMock) Register(key commands.Key, handler commands.Handler) error

type CommandHandlerMock added in v4.8.0

type CommandHandlerMock struct {
	mock.Mock
}

func (*CommandHandlerMock) Handle added in v4.8.0

func (m *CommandHandlerMock) Handle(command *commands.Command) error

type EventBusMock added in v4.8.0

type EventBusMock struct {
	mock.Mock
}

func (*EventBusMock) Publish added in v4.8.0

func (m *EventBusMock) Publish(event *events.Event) error

func (*EventBusMock) Subscribe added in v4.8.0

func (m *EventBusMock) Subscribe(key events.Key, consumers events.Consumer) error

type EventConsumerMock added in v4.8.0

type EventConsumerMock struct {
	mock.Mock
}

func (*EventConsumerMock) On added in v4.8.0

func (m *EventConsumerMock) On(event *events.Event) error

type QueryBusMock added in v4.8.0

type QueryBusMock struct {
	mock.Mock
}

func (*QueryBusMock) Ask added in v4.8.0

func (m *QueryBusMock) Ask(query *queries.Query) (*queries.Response, error)

func (*QueryBusMock) Register added in v4.8.0

func (m *QueryBusMock) Register(key queries.Key, handler queries.Handler) error

type QueryHandlerMock added in v4.8.0

type QueryHandlerMock struct {
	mock.Mock
}

func (*QueryHandlerMock) Handle added in v4.8.0

func (m *QueryHandlerMock) Handle(query *queries.Query) (*queries.Response, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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