Documentation
¶
Index ¶
- func AsciiTitleText()
- func AssignUrl(t TimeAssignVals, u UrlAssignVals) (url string)
- func CheckTickerBadChars(x string) error
- func GetRequest(key string, secret string, url string) (body []byte, err error)
- func GetTickPrice(cfg GetTickerPriceConfig, ticker string, timeVal string, urlType string, ...)
- func IsTickerValid(ticker string) error
- func SelectRandomTicker() (string, string)
- func TickerValidation(ticker string)
- type GetTickerPriceConfig
- type TimeAssignVals
- type UrlAssignVals
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssignUrl ¶
func AssignUrl(t TimeAssignVals, u UrlAssignVals) (url string)
func CheckTickerBadChars ¶
CheckTickerBadChars Tests ticker input for special chars, exported for testing
func GetTickPrice ¶
func GetTickPrice(cfg GetTickerPriceConfig, ticker string, timeVal string, urlType string, ch chan float64)
func IsTickerValid ¶
IsTickerValid tests ticker input for valid ticker, exported for testing
func SelectRandomTicker ¶
func TickerValidation ¶
func TickerValidation(ticker string)
TickerValidation checks user ticker input for special chars and valid ticker
Types ¶
type GetTickerPriceConfig ¶
type TimeAssignVals ¶
type UrlAssignVals ¶
func AssignTime ¶
func AssignTime(t TimeAssignVals) (u UrlAssignVals)
Click to show internal directories.
Click to hide internal directories.