Documentation
¶
Overview ¶
Package app provides functionality for setting up and configuring the event Bus with all necessary event handlers for the application.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupBus ¶
func SetupBus(deps Dependencies)
SetupBus registers all event handlers with the provided event Bus.
Types ¶
type Dependencies ¶
type Dependencies struct {
Bus eventbus.Bus
Uow repository.UnitOfWork
CurrencyConverter money.CurrencyConverter
PaymentProvider provider.PaymentProvider
Logger *slog.Logger
}
Dependencies contains all the dependencies needed by the SetupBus function
Click to show internal directories.
Click to hide internal directories.