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 ¶ added in v1.0.0
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 ¶ added in v1.0.1
type DoRequestFunc ¶ added in v1.0.1
type DoRequestFunc func(crawlSession *CrawlSession, req *navigation.Request) (*navigation.Response, error)
type RedirectCallback ¶ added in v1.0.0
type Shared ¶ added in v1.0.1
type Shared struct {}
func (*Shared) Do ¶ added in v1.0.1
func (s *Shared) Do(crawlSession *CrawlSession, doRequest DoRequestFunc) error
func (*Shared) Enqueue ¶ added in v1.0.1
func (s *Shared) Enqueue(queue *queue.Queue, navigationRequests ...*navigation.Request)
func (*Shared) NewCrawlSessionWithURL ¶ added in v1.0.1
func (s *Shared) NewCrawlSessionWithURL(URL string) (*CrawlSession, error)
func (*Shared) Output ¶ added in v1.0.1
func (s *Shared) Output(navigationRequest *navigation.Request, navigationResponse *navigation.Response, err error)
Click to show internal directories.
Click to hide internal directories.