Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalRobotsCache = &RobotsCache{ cache: make(map[string]*robotsEntry), }
Functions ¶
func GetSitemaps ¶ added in v0.4.0
Types ¶
type RobotsCache ¶
type RobotsCache struct {
RobotName string
// contains filtered or unexported fields
}
func (*RobotsCache) GetRobotsForDomain ¶
func (rc *RobotsCache) GetRobotsForDomain(scheme string, domain string) (*robotsEntry, error)
Fetch and parse robots.txt with caching
func (*RobotsCache) SetClient ¶ added in v0.6.0
func (rc *RobotsCache) SetClient(client *http.Client)
type SitemapIndex ¶ added in v0.4.0
type SitemapIndex struct {
URL string
XMLName xml.Name `xml:"sitemapindex"`
Sitemaps []Sitemap `xml:"sitemap"`
}
func NewSitemapIndex ¶ added in v0.4.0
func NewSitemapIndex(link string) *SitemapIndex
func (*SitemapIndex) GetURLs ¶ added in v0.4.0
func (s *SitemapIndex) GetURLs() []URL
func (*SitemapIndex) Process ¶ added in v0.4.0
func (s *SitemapIndex) Process() bool
type SitemapInterface ¶ added in v0.4.0
type URL ¶ added in v0.4.0
func ExtractURLs ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.