initializer

package
v1.5.4 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCheckoutRegistry added in v1.3.0

func GetCheckoutRegistry(cfg *config.App, logger *slog.Logger) (registry.Provider, error)

GetCheckoutRegistry creates a registry provider for the checkout service

func GetCurrencyRegistry added in v1.3.0

func GetCurrencyRegistry(cfg *config.App, logger *slog.Logger) (registry.Provider, error)

GetCurrencyRegistry creates a dedicated registry provider for currency data

func GetDefaultRegistry added in v1.3.0

func GetDefaultRegistry(cfg *config.App, logger *slog.Logger) (registry.Provider, error)

GetDefaultRegistry creates a default registry provider

func GetExchangeRateRegistry added in v1.3.0

func GetExchangeRateRegistry(cfg *config.App, logger *slog.Logger) (registry.Provider, error)

GetExchangeRateRegistry creates a registry provider for the exchange rate service

func GetRegistryProvider added in v1.3.0

func GetRegistryProvider(
	cfg *RegistryConfig,
	logger *slog.Logger,
) (registry.Provider, error)

GetRegistryProvider returns a configured registry provider based on the provided config

func InitializeDependencies

func InitializeDependencies(cfg *config.App) (
	deps *app.Deps,
	err error,
)

InitializeDependencies initializes all the application dependencies

Types

type RegistryConfig added in v1.3.0

type RegistryConfig struct {
	Name      string
	RedisURL  string
	KeyPrefix string
	CacheSize int
	CacheTTL  time.Duration
}

RegistryConfig holds configuration for creating a registry provider

Jump to

Keyboard shortcuts

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