Documentation
¶
Index ¶
- type App
- type Application
- type Commands
- type DomainEventHandlers
- type InvoiceHandlers
- func (InvoiceHandlers) OnOrderCanceled(ctx context.Context, event ddd.Event) error
- func (InvoiceHandlers) OnOrderCompleted(ctx context.Context, event ddd.Event) error
- func (InvoiceHandlers) OnOrderCreated(ctx context.Context, event ddd.Event) error
- func (h InvoiceHandlers) OnOrderReadied(ctx context.Context, event ddd.Event) error
- type NotificationHandlers
- func (h NotificationHandlers) OnOrderCanceled(ctx context.Context, event ddd.Event) error
- func (NotificationHandlers) OnOrderCompleted(ctx context.Context, event ddd.Event) error
- func (h NotificationHandlers) OnOrderCreated(ctx context.Context, event ddd.Event) error
- func (h NotificationHandlers) OnOrderReadied(ctx context.Context, event ddd.Event) error
- type Queries
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, domainPublisher ddd.EventPublisher, ) *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 DomainEventHandlers ¶
type InvoiceHandlers ¶
type InvoiceHandlers struct {
// contains filtered or unexported fields
}
func NewInvoiceHandlers ¶
func NewInvoiceHandlers(invoices domain.InvoiceRepository) *InvoiceHandlers
func (InvoiceHandlers) OnOrderCanceled ¶
func (InvoiceHandlers) OnOrderCompleted ¶
func (InvoiceHandlers) OnOrderCreated ¶
func (InvoiceHandlers) OnOrderReadied ¶
type NotificationHandlers ¶
type NotificationHandlers struct {
// contains filtered or unexported fields
}
func NewNotificationHandlers ¶
func NewNotificationHandlers(notifications domain.NotificationRepository) *NotificationHandlers
func (NotificationHandlers) OnOrderCanceled ¶
func (NotificationHandlers) OnOrderCompleted ¶
func (NotificationHandlers) OnOrderCreated ¶
func (NotificationHandlers) OnOrderReadied ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.