service

package
v0.0.0-...-3ef2293 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Jump to

Keyboard shortcuts

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