package
0.0.0-20240331180337-aba061b5cf42
Repository: https://github.com/bruli/raspberryrainsensor.git
Documentation: pkg.go.dev

# Functions

CommandHandlerMultiMiddleware applies a sequence of middlewares to a given command handler.
NewBasicAggregateRoot is a constructor.
NewBasicEvent is the constructor for the type.
No description provided by the author
NewEventBus is a constructor.
NewEventsRepositoryError is a constructor.
NewInvalidCommandError is a constructor.
NewInvalidQueryError is a constructor.
NewQueryHndErrorMiddleware is a middleware constructor to log a contextualized query handler error.

# Structs

AppError is a query/command hnd error with context.
No description provided by the author
BasicEvent is the minimal domain event struct.
EventsRepositoryError is self-described.
InvalidCommandError should be returned by the implementations of the interface when the handler does not receive the needed command.
InvalidQueryError is self-described.
UnknownEventToDispatchError is self-described.

# Interfaces

Command is the interface for identifying commands by name.
CommandHandler is self-described.
Event is self-described go:generate moq -out zmock_event_test.go -pkg cqs_test .
EventListener is self-described.
Query is the interface to identify the DTO for a given query by name.
QueryHandler is the interface for handling queries.

# Type aliases

CommandHandlerFunc is a function that implements CommandHandler interface.
No description provided by the author
EventBus subscribe events with event listeners, and dispatch them.
EventFactory must return a typed event.
EventName is self-described.
QueryHandlerMiddleware is a type for decorating QueryHandlers.
QueryName is string to identify a given query when it has not input parameters.