memory

package
v4.12.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandBus

type CommandBus struct {
	Handlers commands.Mapper
}

func (*CommandBus) Dispatch

func (b *CommandBus) Dispatch(command *messages.Message) error

func (*CommandBus) Register

func (b *CommandBus) Register(key messages.Key, handler roles.CommandHandler) error

type EventBus

type EventBus struct {
	Consumers events.Mapper
}

func (*EventBus) Publish

func (b *EventBus) Publish(event *messages.Message) error

func (*EventBus) Subscribe

func (b *EventBus) Subscribe(key messages.Key, consumer roles.EventConsumer) error

type QueryBus

type QueryBus struct {
	Handlers queries.Mapper
}

func (*QueryBus) Ask

func (b *QueryBus) Ask(query *messages.Message) (*messages.Message, error)

func (*QueryBus) Register

func (b *QueryBus) Register(key messages.Key, handler roles.QueryHandler) error

Jump to

Keyboard shortcuts

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