app

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2025 License: MIT Imports: 22 Imported by: 0

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

This section is empty.

Types

type App added in v1.2.0

type App struct {
	Deps                 *Deps
	Config               *config.App
	AuthService          *auth.Service
	UserService          *userSvc.Service
	AccountService       *account.Service
	CurrencyService      *currencyScv.Service
	CheckoutService      *checkout.Service
	ExchangeRateService  *exchangeSvc.Service
	StripeConnectService stripeconnect.Service
}

func New added in v1.2.0

func New(deps *Deps, cfg *config.App) *App

type Deps added in v1.2.0

type Deps struct {
	// Registry providers
	RegistryProvider     registry.Provider // Main registry provider
	CurrencyRegistry     registry.Provider // For currency service
	CheckoutRegistry     registry.Provider // For checkout service
	ExchangeRateRegistry registry.Provider // For exchange rate service

	// Other dependencies
	ExchangeRateProvider exchange.Exchange
	PaymentProvider      payment.Payment
	Uow                  repository.UnitOfWork
	EventBus             eventbus.Bus
	Logger               *slog.Logger
}

Deps contains all the dependencies needed by the SetupBus function

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL