Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultApiAddr = "https://bank.gov.ua"
DefaultApiAddr holds default API address.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CurrencyRates ¶
type CurrencyRates struct {
// contains filtered or unexported fields
}
CurrencyRates implemets currency rates client for bank.gov.ua: https://bank.gov.ua/control/uk/publish/article?art_id=38441973
func NewCurrencyRates ¶
func NewCurrencyRates() *CurrencyRates
NewCurrencyRates constructs new currency rates client for bank.gov.ua.
func NewCurrencyRatesWithAddr ¶
func NewCurrencyRatesWithAddr(addr string) *CurrencyRates
NewCurrencyRatesWithAddr constructs new currency rates client for given addr (like proto://host:port, no path). Mostly for testing.
Click to show internal directories.
Click to hide internal directories.