Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicCrawler ¶
type BasicCrawler struct { }
func (*BasicCrawler) QueueSize ¶
func (c *BasicCrawler) QueueSize() int
type HostConfig ¶
type SiteCrawler ¶
func NewSiteCrawler ¶
func NewSiteCrawler(userAgent string, globalMaxRPS int, siteMaxRPS int) *SiteCrawler
func (*SiteCrawler) GetConfig ¶
func (c *SiteCrawler) GetConfig(hostname string) *HostConfig
func (*SiteCrawler) QueueSize ¶
func (c *SiteCrawler) QueueSize() int
type WebCrawler ¶
type WebCrawler interface { Crawl(ctx context.Context, url string) (*http.Response, error) QueueSize() int }
func NewBasicCrawler ¶
func NewBasicCrawler() WebCrawler
Click to show internal directories.
Click to hide internal directories.