Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConstructAPIURL ¶
ConstructAPIURL constructs the URL to fetch exchange rates.
func FetchExchangeRateData ¶
func FetchExchangeRateData(apiURL string) ([]models.CurrencyInfo, error)
FetchExchangeRateData fetches the exchange rate data and returns it.
func RatesHandler ¶
func RatesHandler(w http.ResponseWriter, r *http.Request)
RatesHandler handles requests for the /rates route.
func SubscribeHandler ¶
func SubscribeHandler(w http.ResponseWriter, r *http.Request)
Types ¶
type EmailRequest ¶
type EmailRequest struct {
Email string `json:"email"`
}
EmailRequest represents the JSON structure for the email request
Click to show internal directories.
Click to hide internal directories.