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 InvoiceHandlers ¶
type InvoiceHandlers[T ddd.AggregateEvent] struct { // contains filtered or unexported fields }
func NewInvoiceHandlers ¶
func NewInvoiceHandlers(invoices domain.InvoiceRepository) *InvoiceHandlers[ddd.AggregateEvent]
func (InvoiceHandlers[T]) HandleEvent ¶
func (h InvoiceHandlers[T]) HandleEvent(ctx context.Context, event T) error
type NotificationHandlers ¶
type NotificationHandlers[T ddd.AggregateEvent] struct { // contains filtered or unexported fields }
func NewNotificationHandlers ¶
func NewNotificationHandlers(notifications domain.NotificationRepository) *NotificationHandlers[ddd.AggregateEvent]
func (NotificationHandlers[T]) HandleEvent ¶
func (h NotificationHandlers[T]) HandleEvent(ctx context.Context, event T) error
Click to show internal directories.
Click to hide internal directories.