Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FinageScraper ¶
type FinageScraper struct {
// contains filtered or unexported fields
}
func NewFinageScraper ¶
func NewFinageScraper(db *models.DB) *FinageScraper
func (*FinageScraper) Close ¶
func (scraper *FinageScraper) Close() error
Close closes any existing API connections
func (*FinageScraper) FetchQuotes ¶
func (scraper *FinageScraper) FetchQuotes() error
FetchQuotes fetches quotes from an API and feeds them into the channel.
func (*FinageScraper) GetStockQuotationChannel ¶
func (scraper *FinageScraper) GetStockQuotationChannel() chan models.StockQuotation
GetDataChannel returns the scrapers data channel.
type StockScraper ¶
type StockScraper struct {
// contains filtered or unexported fields
}
type StockScraperInterface ¶
type StockScraperInterface interface { GetStockQuotationChannel() chan models.StockQuotation FetchQuotes() error }
Click to show internal directories.
Click to hide internal directories.