Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Db *sql.DB
Functions ¶
func GetCurrencies ¶
GetCurrencies generates a hash of currency code and its DB id value
func GetExchangeRates ¶
GetExchangeRates returns a hash of converted currency code and their rate for a given date. If the "date" data is missing fetch from the last available date in the DB
func LogAPIRequest ¶
func LogAPIRequest(ip, from, to, date string)
LogAPIRequest logs all API request for future analytics
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.