Documentation ¶
Index ¶
Constants ¶
View Source
const Baidu = crawlerdetect.Baidu
View Source
const Bing = crawlerdetect.Bing
View Source
const Google = crawlerdetect.Google
View Source
const Sogou = crawlerdetect.Sogou
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func NewBuilder ¶
func NewBuilder() *Builder
func (*Builder) AddUserAgent ¶
AddUserAgent 添加 user-agent 映射 例如:
map[string][]string{ crawlerdetect.Baidu: []string{"NewBaiduUserAgent"}, crawlerdetect.Bing: []string{"NewBingUserAgent"}, }
func (*Builder) Build ¶
func (b *Builder) Build() gin.HandlerFunc
func (*Builder) RemoveUserAgent ¶
Click to show internal directories.
Click to hide internal directories.