Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Crawler ¶
type Crawler struct {
// contains filtered or unexported fields
}
Crawler is our main struct
func New ¶
func New(ctx context.Context, logger yolo.Logger, client *http.Client, filter FilterFunc, mapper Mapper) *Crawler
New creates a new crawler
func (*Crawler) Add ¶
Add adds one or more previously un-added urls to crawler to visit. source can be nil to indicate root. Returns a list of errors if any occured.
type FilterFunc ¶
FilterFunc is used to exclude urls from getting crawled
Click to show internal directories.
Click to hide internal directories.