Documentation ¶
Index ¶
Constants ¶
View Source
const ( APInone = iota APIalphavantage APIyahoo )
API providers
Variables ¶
View Source
var ( // ErrFileNotFound error ErrFileNotFound = errors.New("file not found") // ErrItemNotFound for string not found on []string ErrItemNotFound = errors.New("item not found") )
Functions ¶
Types ¶
type FII ¶
type FII struct {
// contains filtered or unexported fields
}
FII holds the infrastructure data.
type HTTPFetch ¶
type HTTPFetch struct {
// contains filtered or unexported fields
}
HTTPFetch implements a generic HTTP fetcher.
type Report ¶
type Report struct {
Data []docID `json:"data"`
}
Report holds the result of all documents filtered by a criteria defined by a http.Get on the B3 server.
type StockFetch ¶
type StockFetch struct {
// contains filtered or unexported fields
}
StockFetch implements a fetcher stock quotes.
func NewStock ¶
func NewStock(store rapina.StockParser, log rapina.Logger, apiKey, dataDir string) *StockFetch
NewStock returns a new instance of *StockServer
type WriteCounter ¶
type WriteCounter struct {
Total uint64
}
WriteCounter counts the number of bytes written the io.Writer. source: https://golangcode.com/download-a-file-with-progress/
Click to show internal directories.
Click to hide internal directories.