Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BaseCurrency = currency.USD
Functions ¶
This section is empty.
Types ¶
type OpenExchangeRatesAPI ¶
type OpenExchangeRatesAPI interface {
GetByDate(base currency.Code, symbols []currency.Code, date datetime.Date) (*openexchange.HistoricalRates, error)
}
type RatesRepository ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(rates RatesRepository, api OpenExchangeRatesAPI) *Service
Click to show internal directories.
Click to hide internal directories.