Documentation
¶
Index ¶
- Constants
- func GetBda(userAgent string, referer string, location string) string
- func GetMurmur128String(input string, seed uint64) string
- func MapSlice(a []string, f func(string) string) []string
- func NewWithSeed(seed uint64) *digest
- func Random() string
- type Bda
- type EncryptionData
- type Fingerprint
- type GetTokenOptions
- type GetTokenResult
- type TimestampData
Constants ¶
View Source
const DEFAULT_USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"
Variables ¶
This section is empty.
Functions ¶
func GetMurmur128String ¶
func NewWithSeed ¶
func NewWithSeed(seed uint64) *digest
Types ¶
type EncryptionData ¶
type Fingerprint ¶
type Fingerprint map[string]interface{}
type GetTokenOptions ¶
type GetTokenOptions struct {
PKey string `json:"pkey"`
SURL string `json:"surl,omitempty"`
Data map[string]string `json:"data,omitempty"`
Headers map[string]string `json:"headers,omitempty"`
Site string `json:"site,omitempty"`
Location string `json:"location,omitempty"`
Proxy string `json:"proxy,omitempty"`
}
type GetTokenResult ¶
type GetTokenResult struct {
ChallengeURL string `json:"challenge_url"`
ChallengeURLCDN string `json:"challenge_url_cdn"`
ChallengeURLCDNSRI string `json:"challenge_url_cdn_sri"`
DisableDefaultStyling bool `json:"disable_default_styling"`
IFrameHeight int `json:"iframe_height"`
IFrameWidth int `json:"iframe_width"`
KBio bool `json:"kbio"`
MBio bool `json:"mbio"`
NoScript string `json:"noscript"`
TBio bool `json:"tbio"`
Token string `json:"token"`
}
func GetToken ¶
func GetToken(options *GetTokenOptions) (GetTokenResult, error)
type TimestampData ¶
type TimestampData struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.