# Functions
returns true if event is *DoneEvent.
Returns EventWithMetadata if event can be converted to it.
Event returned as a result of successful processing Event or chain of Events.
returns Done event type for eventType event.
No description provided by the author
Returns Handler with EventType equals eventType.
returns true if event is *DoneEvent and .EventType() equals DoneEventType(eventType).
No description provided by the author
Returns new Commands with Concurrency Limit equals to 0 or error.
Returns new *ErrAggregatedEvent caused by event or Events dispatched while processing event.
Returns new *ErrEvent caused by event.
Returns new Commands with Concurrency Limit equals to limit or error.
Returns CommandWorker based on Commands.
returns wrapped Event by calling .Event() method if event has it or nil otherwise.
unwraps event if event is *DoneEvent and returns it.
Adds Metadata to event.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
*BaseHandler implements Handler.
*DoneEvent is returned by Commands.Handle if Event was handled successfully.
E implements Event.
No description provided by the author
error type returned if no Handlers was found for particular Event.
No description provided by the author
error type returned if incorrect Handler was passed to Commands.
No description provided by the author
# Interfaces
Sealed interface to handle Events.
Sealed interface of worker that is able to handle Events regardless of their type.
Event carries information needed to execute Commands.Handle and Commands.HandleOnly.
Serves to pass Events to Handlers.
Event with metadata.
Serves to write Events in Handle.Handle to chain Events.
Handles single type of Event.
# Type aliases
error type returned if Event equals nil.