Documentation ¶
Index ¶
- func LogCommandHandlerAccess[T ddd.Command](handlers ddd.CommandHandler[T], label string, logger zerolog.Logger) ddd.CommandHandler[T]
- type Application
- func (a Application) AuthorizeCustomer(ctx context.Context, authorize application.AuthorizeCustomer) (err error)
- func (a Application) DisableCustomer(ctx context.Context, disable application.DisableCustomer) (err error)
- func (a Application) EnableCustomer(ctx context.Context, enable application.EnableCustomer) (err error)
- func (a Application) GetCustomer(ctx context.Context, get application.GetCustomer) (customer *domain.Customer, err error)
- func (a Application) RegisterCustomer(ctx context.Context, register application.RegisterCustomer) (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) AuthorizeCustomer ¶
func (a Application) AuthorizeCustomer(ctx context.Context, authorize application.AuthorizeCustomer) (err error)
func (Application) DisableCustomer ¶
func (a Application) DisableCustomer(ctx context.Context, disable application.DisableCustomer) (err error)
func (Application) EnableCustomer ¶
func (a Application) EnableCustomer(ctx context.Context, enable application.EnableCustomer) (err error)
func (Application) GetCustomer ¶
func (a Application) GetCustomer(ctx context.Context, get application.GetCustomer) (customer *domain.Customer, err error, )
func (Application) RegisterCustomer ¶
func (a Application) RegisterCustomer(ctx context.Context, register application.RegisterCustomer) (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.