Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func New ¶
func New(orders domain.OrderRepository, customers domain.CustomerRepository, payments domain.PaymentRepository, shopping domain.ShoppingRepository, ) *Application
type Commands ¶
type Commands interface {
CreateOrder(ctx context.Context, cmd commands.CreateOrder) error
CancelOrder(ctx context.Context, cmd commands.CancelOrder) error
ReadyOrder(ctx context.Context, cmd commands.ReadyOrder) error
CompleteOrder(ctx context.Context, cmd commands.CompleteOrder) error
}
type IntegrationEventHandlers ¶
type IntegrationEventHandlers[T ddd.AggregateEvent] struct { // contains filtered or unexported fields }
func NewIntegrationEventHandlers ¶
func NewIntegrationEventHandlers(publisher am.MessagePublisher[ddd.Event]) *IntegrationEventHandlers[ddd.AggregateEvent]
func (IntegrationEventHandlers[T]) HandleEvent ¶
func (h IntegrationEventHandlers[T]) HandleEvent(ctx context.Context, event T) error
Click to show internal directories.
Click to hide internal directories.