Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoExchangeRateForGivenDay = errors.New("no exchange rate for given date")
ErrNoExchangeRateForGivenDay represents a failure where there are no published rates for a given day
View Source
var ErrNoRatesForCurrency = errors.New("currency without published rates")
ErrNoRatesForCurrency represents a failure where NBP doesn't publish exchange rates for the given currency
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a low-level client over the NBP rates API
type DailyRate ¶
type DailyRate struct { No string `json:"no"` EffectiveDate string `json:"effectiveDate"` Mid decimal.Decimal `json:"mid"` }
DailyRate represent a rate for a single day
type ErrApiCallUnsuccessful ¶
ErrApiCallUnsuccessful represents a generic unsuccessful API call
func (ErrApiCallUnsuccessful) Error ¶
func (e ErrApiCallUnsuccessful) Error() string
Click to show internal directories.
Click to hide internal directories.