Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateConfigFile ¶
func CreateConfigFile(cfg CrawlerVars)
Types ¶
type CrawlerVars ¶
type CrawlerVars struct {
StarterURL string `yaml:"starterURL"`
AllowedDomains []string `yaml:"allowedDomains"`
Selectors struct {
GetContent []string `yaml:"get-content"`
CheckLinks []string `yaml:"check-links"`
} `yaml:"selectors"`
Colly struct {
MaxDepth int `yaml:"maxDepth"`
Async bool `yaml:"async"`
ParallelRequests int `yaml:"parallelRequests"`
} `yaml:"Colly"`
}
type HtmlReport ¶
type HtmlReport struct {
Pages []Page `json:"pages"`
Failures [][]string `json:"failures"`
Content [][]string `json:"content"`
}
func GetHtmlReport ¶
func GetHtmlReport() *HtmlReport
type Reporter ¶
type Reporter struct {
Pages []Page `json:"allPages"`
}
func InitReporter ¶
func InitReporter() *Reporter
func ReadReport ¶
func (*Reporter) AddContentToPage ¶
func (*Reporter) AddLinkToPage ¶
func (*Reporter) WriteReport ¶
Click to show internal directories.
Click to hide internal directories.