Versions in this module Expand all Collapse all v0 v0.0.2 Feb 19, 2025 v0.0.1 Feb 19, 2025 Changes in this version + const Baidu + const Bing + const Google + const Sogou + type BaiduStrategy struct + func NewBaiduStrategy() *BaiduStrategy + type BingStrategy struct + func NewBingStrategy() *BingStrategy + type GoogleStrategy struct + func NewGoogleStrategy() *GoogleStrategy + type SoGouStrategy struct + Hosts []string + func NewSoGouStrategy() *SoGouStrategy + func (s *SoGouStrategy) CheckCrawler(ip string) (bool, error) + type Strategy interface + CheckCrawler func(ip string) (bool, error) + func NewCrawlerDetector(crawler string) Strategy + type UniversalStrategy struct + Hosts []string + func NewUniversalStrategy(hosts []string) *UniversalStrategy + func (s *UniversalStrategy) CheckCrawler(ip string) (bool, error)