Versions in this module Expand all Collapse all v1 v1.3.0 Apr 8, 2021 Changes in this version + var Client *http.Client = &http.Client + func GetApiResponseBody(url, accessToken string, isRetryable func(*http.Response) bool) ([]byte, error) v1.2.0 Jan 1, 2021 Changes in this version + const ApiKeyEnvName + const ApiServerEnvName + const DefaultClientTimeout + const DefaultRequestBackoffDelay + const DefaultRequestBackoffLimit + const DefaultRequestRetryLimit + func GetApiKeyFromEnv() string + func GetApiServerFromEnv() string + func IsErrorRetryable(err error) bool + func MakeApiRequestWithRetry(client *http.Client, req *http.Request, ...) + type OAuthCredentials struct + AccessToken string + ApiServer string + ExpiresIn int + RefreshToken string + TokenType string + type StockApi interface + GetCurrency func(currency, currencyTo string) (stock.Currency, error) + GetQuote func(symbol string) (stock.Quote, error) + GetSymbol func(symbol string) (stock.Symbol, error) + RefreshCredentials func() (*OAuthCredentials, error)