Documentation ¶
Index ¶
- func LogCommandHandlerAccess[T ddd.Command](handlers ddd.CommandHandler[T], label string, logger zerolog.Logger) ddd.CommandHandler[T]
- type Application
- func (a Application) AdjustInvoice(ctx context.Context, adjust application.AdjustInvoice) (err error)
- func (a Application) AuthorizePayment(ctx context.Context, authorize application.AuthorizePayment) (err error)
- func (a Application) CancelInvoice(ctx context.Context, cancel application.CancelInvoice) (err error)
- func (a Application) ConfirmPayment(ctx context.Context, confirm application.ConfirmPayment) (err error)
- func (a Application) CreateInvoice(ctx context.Context, create application.CreateInvoice) (err error)
- func (a Application) PayInvoice(ctx context.Context, pay application.PayInvoice) (err error)
- type CommandHandlers
- type EventHandlers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogCommandHandlerAccess ¶
func LogCommandHandlerAccess[T ddd.Command](handlers ddd.CommandHandler[T], label string, logger zerolog.Logger) ddd.CommandHandler[T]
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) AdjustInvoice ¶
func (a Application) AdjustInvoice(ctx context.Context, adjust application.AdjustInvoice) (err error)
func (Application) AuthorizePayment ¶
func (a Application) AuthorizePayment(ctx context.Context, authorize application.AuthorizePayment) (err error)
func (Application) CancelInvoice ¶
func (a Application) CancelInvoice(ctx context.Context, cancel application.CancelInvoice) (err error)
func (Application) ConfirmPayment ¶
func (a Application) ConfirmPayment(ctx context.Context, confirm application.ConfirmPayment) (err error)
func (Application) CreateInvoice ¶
func (a Application) CreateInvoice(ctx context.Context, create application.CreateInvoice) (err error)
func (Application) PayInvoice ¶
func (a Application) PayInvoice(ctx context.Context, pay application.PayInvoice) (err error)
type CommandHandlers ¶
type CommandHandlers[T ddd.Command] struct { ddd.CommandHandler[T] // contains filtered or unexported fields }
func (CommandHandlers[T]) HandleCommand ¶
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.