Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LatestDate string
View Source
var Rdbpool *redis.Pool
Functions ¶
func AllowAPIRequest ¶
AllowAPIRequest determines whether an API request should be allowed or not
func GetExchangeRate ¶
GetExchangeRate retrieves the rate for the day from Redis
func SaveExchangeRates ¶
func SaveExchangeRates()
SaveExchangeRates to Redis Insert data of previous days exchange rate when a day is missing Previous day is always present since we are fetching it from the DB
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.