Documentation
¶
Index ¶
- func CrawlersList() []string
- func ExclusionsList() []string
- type CrawlerDetector
- func (cd *CrawlerDetector) CombineRegexp(patterns []string) string
- func (cd *CrawlerDetector) GetMatched() []string
- func (cd *CrawlerDetector) IsCrawler(userAgent string) bool
- func (cd *CrawlerDetector) IsExclusion(userAgent string) bool
- func (cd *CrawlerDetector) SetCrawlers(list []string) *CrawlerDetector
- func (cd *CrawlerDetector) SetExclusions(list []string) *CrawlerDetector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CrawlerDetector ¶
CrawlerDetector is crawler detector structure
func (*CrawlerDetector) CombineRegexp ¶
func (cd *CrawlerDetector) CombineRegexp(patterns []string) string
CombineRegexp is build regex from givement patterns list
func (*CrawlerDetector) GetMatched ¶
func (cd *CrawlerDetector) GetMatched() []string
GetMatched is getter of matched result
func (*CrawlerDetector) IsCrawler ¶
func (cd *CrawlerDetector) IsCrawler(userAgent string) bool
IsCrawler is detect crawlers/spiders/bots by user agent
func (*CrawlerDetector) IsExclusion ¶
func (cd *CrawlerDetector) IsExclusion(userAgent string) bool
IsExclusion is detect exclusion from user agent
func (*CrawlerDetector) SetCrawlers ¶
func (cd *CrawlerDetector) SetCrawlers(list []string) *CrawlerDetector
SetCrawlers is setter for custom crawlers list
func (*CrawlerDetector) SetExclusions ¶
func (cd *CrawlerDetector) SetExclusions(list []string) *CrawlerDetector
SetExclusions is setter for custom exclusions list
Click to show internal directories.
Click to hide internal directories.