Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var WireSet = wire.NewSet( NewExchangeRateService, )
Functions ¶
This section is empty.
Types ¶
type ExchangeRateService ¶
type ExchangeRateService interface { FetchLatestRates(ctx context.Context, baseCurrency string, targetCurrencies []string) (map[string]float64, error) AreSupportedCurrencies(ctx context.Context, currencies []string) (bool, error) }
func NewExchangeRateService ¶
func NewExchangeRateService(repoExchangeRate repo.ExchangeRateRepository, repoHistory repo.ExchangeRateHistoryRepository, apiClient openexchangerates.OpenExchangeRateClient, currenciesCache cache.CurrenciesCache, exchangeRateCache cache.ExchangeRateCache) ExchangeRateService
type UserService ¶
type UserService interface { Register(ctx context.Context, in *model.RegisterInput) (result int, err error) Login(ctx context.Context) error VerifyOTP(ctx context.Context) error UpdatePasswordRegister(ctx context.Context) error }
func NewUserService ¶
func NewUserService(repoUser repo.UserRepository) UserService
Click to show internal directories.
Click to hide internal directories.