Documentation
¶
Overview ¶
Package robots is a small, pure robots.txt parser and matcher. kage obeys it by default so a clone stays polite; --no-robots bypasses the matcher and puts the consequences on the user.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Matcher ¶
type Matcher struct {
Sitemaps []string
CrawlDelay time.Duration
// contains filtered or unexported fields
}
Matcher answers whether a path may be crawled for one user-agent group, and carries the sitemaps and crawl-delay declared in the file.
func AllowAll ¶
func AllowAll() *Matcher
AllowAll returns a Matcher that permits every path (used when robots is disabled or the file is absent).
Click to show internal directories.
Click to hide internal directories.