Documentation
¶
Index ¶
Constants ¶
View Source
const (
Url = "https://api.apilayer.com"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶ added in v1.14.18
type Cache struct {
// contains filtered or unexported fields
}
Cache stores the most recently fetched exchange rate safely for concurrent readers. It is shared by the exchange-rate refresh task and checkout flows.
type Response ¶
type Response struct {
Success bool `json:"success"`
Terms string `json:"terms"`
Privacy string `json:"privacy"`
Query struct {
From string `json:"from"`
To string `json:"to"`
Amount float64 `json:"amount"`
} `json:"query"`
Info struct {
Timestamp int64 `json:"timestamp"`
Quote float64 `json:"quote"`
} `json:"info"`
Result float64 `json:"result"`
}
Click to show internal directories.
Click to hide internal directories.