Documentation
¶
Index ¶
- type Application
- func (a Application) AssignShoppingList(ctx context.Context, cmd commands.AssignShoppingList) (err error)
- func (a Application) CancelShoppingList(ctx context.Context, cmd commands.CancelShoppingList) (err error)
- func (a Application) CompleteShoppingList(ctx context.Context, cmd commands.CompleteShoppingList) (err error)
- func (a Application) CreateShoppingList(ctx context.Context, cmd commands.CreateShoppingList) (err error)
- func (a Application) GetShoppingList(ctx context.Context, query queries.GetShoppingList) (list *domain.ShoppingList, err error)
- type DomainEventHandlers
- func (h DomainEventHandlers) OnShoppingListAssigned(ctx context.Context, event ddd.Event) (err error)
- func (h DomainEventHandlers) OnShoppingListCanceled(ctx context.Context, event ddd.Event) (err error)
- func (h DomainEventHandlers) OnShoppingListCompleted(ctx context.Context, event ddd.Event) (err error)
- func (h DomainEventHandlers) OnShoppingListCreated(ctx context.Context, event ddd.Event) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
application.App
// contains filtered or unexported fields
}
func LogApplicationAccess ¶
func LogApplicationAccess(application application.App, logger zerolog.Logger) Application
func (Application) AssignShoppingList ¶
func (a Application) AssignShoppingList(ctx context.Context, cmd commands.AssignShoppingList) (err error)
func (Application) CancelShoppingList ¶
func (a Application) CancelShoppingList(ctx context.Context, cmd commands.CancelShoppingList) (err error)
func (Application) CompleteShoppingList ¶
func (a Application) CompleteShoppingList(ctx context.Context, cmd commands.CompleteShoppingList) (err error)
func (Application) CreateShoppingList ¶
func (a Application) CreateShoppingList(ctx context.Context, cmd commands.CreateShoppingList) (err error)
func (Application) GetShoppingList ¶
func (a Application) GetShoppingList(ctx context.Context, query queries.GetShoppingList) (list *domain.ShoppingList, err error, )
type DomainEventHandlers ¶
type DomainEventHandlers struct {
application.DomainEventHandlers
// contains filtered or unexported fields
}
func LogDomainEventHandlerAccess ¶
func LogDomainEventHandlerAccess(handlers application.DomainEventHandlers, logger zerolog.Logger) DomainEventHandlers
func (DomainEventHandlers) OnShoppingListAssigned ¶
func (DomainEventHandlers) OnShoppingListCanceled ¶
func (DomainEventHandlers) OnShoppingListCompleted ¶
func (DomainEventHandlers) OnShoppingListCreated ¶
Click to show internal directories.
Click to hide internal directories.