# Functions
CtxWithOriginalMessage returns a new context with the original message attached.
FullyQualifiedStructName name returns object name in format [package].[type name].
NamedStruct returns the name from a message implementing the following interface:
type namedStruct interface { Name() string }
It ignores if the value is a pointer or not.
NewCommandBus creates a new CommandBus.
NewCommandBusWithConfig creates a new CommandBus.
NewCommandHandler creates a new CommandHandler implementation based on provided function and command type inferred from function argument.
NewCommandProcessor creates a new CommandProcessor.
No description provided by the author
NewEventBus creates a new CommandBus.
NewEventBusWithConfig creates a new EventBus.
NewEventGroupProcessorWithConfig creates a new EventGroupProcessor.
NewEventHandler creates a new EventHandler implementation based on provided function and event type inferred from function argument.
NewEventProcessor creates a new EventProcessor.
NewEventProcessorWithConfig creates a new EventProcessor.
Deprecated: use CommandHandler and EventHandler instead.
NewGroupEventHandler creates a new GroupEventHandler implementation based on provided function and event type inferred from function argument.
OriginalMessageFromCtx returns the original message that was received by the event/command handler.
StructName name returns struct name in format [type name].
# Structs
CommandBus transports commands to command handlers.
No description provided by the author
No description provided by the author
No description provided by the author
CommandProcessor determines which CommandHandler should handle the command received from the command bus.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DuplicateCommandHandlerError occurs when a handler with the same name already exists.
EventBus transports events to event handlers.
No description provided by the author
EventGroupProcessor determines which EventHandler should handle event received from event bus.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
EventProcessor determines which EventHandler should handle event received from event bus.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Deprecated: use CommandHandler and EventHandler instead.
Deprecated: use CommandProcessor and EventProcessor instead.
No description provided by the author
No description provided by the author
No description provided by the author
NoProtoMessageError is returned when the given value does not implement proto.Message.
No description provided by the author
ProtobufMarshaler a protobuf marshaler using github.com/gogo/protobuf/proto (deprecated).
ProtoMarshaler is the default Protocol Buffers marshaler.
# Interfaces
CommandEventMarshaler marshals Commands and Events to Watermill's messages and vice versa.
CommandHandler receives a command defined by NewCommand and handles it with the Handle method.
EventHandler receives events defined by NewEvent and handles them with its Handle method.
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CommandProcessorSubscriberConstructorFn creates subscriber for CommandHandler.
CommandsSubscriberConstructor creates subscriber for CommandHandler.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
EventsSubscriberConstructor creates a subscriber for EventHandler.
No description provided by the author
No description provided by the author