Documentation ¶
Index ¶
- type Application
- func (a Application) AddItem(ctx context.Context, add application.AddItem) (err error)
- func (a Application) CancelBasket(ctx context.Context, cancel application.CancelBasket) (err error)
- func (a Application) CheckoutBasket(ctx context.Context, checkout application.CheckoutBasket) (err error)
- func (a Application) GetBasket(ctx context.Context, get application.GetBasket) (basket *domain.Basket, err error)
- func (a Application) RemoveItem(ctx context.Context, remove application.RemoveItem) (err error)
- func (a Application) StartBasket(ctx context.Context, start application.StartBasket) (err error)
- type EventHandlers
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) AddItem ¶
func (a Application) AddItem(ctx context.Context, add application.AddItem) (err error)
func (Application) CancelBasket ¶
func (a Application) CancelBasket(ctx context.Context, cancel application.CancelBasket) (err error)
func (Application) CheckoutBasket ¶
func (a Application) CheckoutBasket(ctx context.Context, checkout application.CheckoutBasket) (err error)
func (Application) GetBasket ¶
func (a Application) GetBasket(ctx context.Context, get application.GetBasket) (basket *domain.Basket, err error)
func (Application) RemoveItem ¶
func (a Application) RemoveItem(ctx context.Context, remove application.RemoveItem) (err error)
func (Application) StartBasket ¶
func (a Application) StartBasket(ctx context.Context, start application.StartBasket) (err error)
type EventHandlers ¶
type EventHandlers[T ddd.Event] struct { ddd.EventHandler[T] // contains filtered or unexported fields }
func LogEventHandlerAccess ¶
func LogEventHandlerAccess[T ddd.Event](handlers ddd.EventHandler[T], label string, logger zerolog.Logger) EventHandlers[T]
func (EventHandlers[T]) HandleEvent ¶
func (h EventHandlers[T]) HandleEvent(ctx context.Context, event T) (err error)
Click to show internal directories.
Click to hide internal directories.