Documentation
¶
Index ¶
- Variables
- func ExtractAssetsOutlinks(item *models.Item) (assets, outlinks []*models.URL, err error)
- func Extractors(item *models.Item) (assets, outlinks []*models.URL, err error)
- func SanitizeAssetsOutlinks(item *models.Item, assets []*models.URL, outlinks []*models.URL, err error) ([]*models.URL, []*models.URL, error)
- func Start(inputChan, outputChan chan *models.Item) error
- func Stop()
- type OutlinkExtractor
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrPostprocessorAlreadyInitialized is the error returned when the postprocessor is already initialized ErrPostprocessorAlreadyInitialized = errors.New("postprocessor already initialized") )
Functions ¶
func ExtractAssetsOutlinks ¶
ExtractAssetsOutlinks extracts assets from the item's body and returns them. It also potentially returns outlinks if the body contains URLs that are not assets.
func Extractors ¶
Extract assets and outlinks from the body using the appropriate extractor Order is important, we want to check for more specific things first, as they may trigger more general extractors (e.g. HTML) TODO this should be refactored using interfaces
func SanitizeAssetsOutlinks ¶
Types ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package domainscrawl is a postprocessing component that parse domains from a given input and stores them for later matching.
|
Package domainscrawl is a postprocessing component that parse domains from a given input and stores them for later matching. |
|
sitespecific
|
|
Click to show internal directories.
Click to hide internal directories.