run

package
v0.0.0-...-f3ae9c8 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(ctx context.Context, scrapers []*Scraper, stocks []*Stock) (<-chan *Response, error)

func GetScraperFromUrl

func GetScraperFromUrl(url string) (string, error)

func NewSet

func NewSet() set

Types

type Response

type Response struct {
	ScraperName string
	StockName   string
	URL         string
	Result      *parseResult
	TimeStart   time.Time
	TimeEnd     time.Time
	Err         error
}

func (*Response) Log

func (res *Response) Log()

func (*Response) Success

func (res *Response) Success() bool

type Scraper

type Scraper struct {
	Name    string
	Workers int
}

type Stock

type Stock struct {
	Name        string
	Isin        string
	Description string
	Sources     []*StockSource
}

type StockSource

type StockSource struct {
	Scraper string
	URL     string
}

Jump to

Keyboard shortcuts

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