Documentation ¶
Index ¶
- Variables
- func BuildHttpClient(dialer *fastdialer.Dialer, options *types.Options, ...) (*retryablehttp.Client, *fastdialer.Dialer, error)
- type CrawlSession
- type DoRequestFunc
- type RedirectCallback
- type Shared
- func (s *Shared) Do(crawlSession *CrawlSession, doRequest DoRequestFunc) error
- func (s *Shared) Enqueue(queue *queue.Queue, navigationRequests ...*navigation.Request)
- func (s *Shared) NewCrawlSessionWithURL(URL string) (*CrawlSession, error)
- func (s *Shared) Output(navigationRequest *navigation.Request, navigationResponse *navigation.Response, ...)
- func (s *Shared) ValidateScope(URL string, root string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrOutOfScope = errors.New("out of scope")
Functions ¶
func BuildHttpClient ¶
func BuildHttpClient(dialer *fastdialer.Dialer, options *types.Options, redirectCallback RedirectCallback) (*retryablehttp.Client, *fastdialer.Dialer, error)
BuildClient builds a http client based on a profile
Types ¶
type CrawlSession ¶
type DoRequestFunc ¶
type DoRequestFunc func(crawlSession *CrawlSession, req *navigation.Request) (*navigation.Response, error)
type RedirectCallback ¶
type Shared ¶
type Shared struct {}
func (*Shared) Do ¶
func (s *Shared) Do(crawlSession *CrawlSession, doRequest DoRequestFunc) error
func (*Shared) Enqueue ¶
func (s *Shared) Enqueue(queue *queue.Queue, navigationRequests ...*navigation.Request)
func (*Shared) NewCrawlSessionWithURL ¶
func (s *Shared) NewCrawlSessionWithURL(URL string) (*CrawlSession, error)
func (*Shared) Output ¶
func (s *Shared) Output(navigationRequest *navigation.Request, navigationResponse *navigation.Response, err error)
Click to show internal directories.
Click to hide internal directories.