stockscrapers

package
v1.1.1-rc-41 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2021 License: GPL-2.0 Imports: 10 Imported by: 0

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL