Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
SupportedCurrencies = []string{
"USD",
"EUR",
"JPY",
"GBP",
"CNY",
"CAD",
"AUD",
"CHF",
"HKD",
"SEK",
"SGD",
"PLN",
"NOK",
"DKK",
"NZD",
"MXN",
"CZK",
"ZAR",
"HUF",
"THB",
"SAR",
"ILS",
"RUB",
"TRY",
}
)
Functions ¶
Types ¶
type ExchangeRatesManager ¶
type ExchangeRatesManager interface { PopulateCurrencies(ctx context.Context) error PopulateHistoricalRates(context.Context, HistoricalExchangeRatesPeriod) error PopulateMissingExchangeRates(context.Context) error }
func NewExchangeRatesManager ¶
func NewExchangeRatesManager(currencyAPIKey string, pool *pgxpool.Pool) ExchangeRatesManager
type HistoricalExchangeRatesPeriod ¶
type HistoricalExchangeRatesPeriod string
const ( Full HistoricalExchangeRatesPeriod = "full" Latest HistoricalExchangeRatesPeriod = "latest" )
Click to show internal directories.
Click to hide internal directories.