Documentation
¶
Index ¶
- Constants
- func CleanAddress(address string) string
- func Compress(uncompressed string, keyStrBase64 string) string
- func Contains(s []string, e string) bool
- func ContainsInt(s []int, e int) bool
- func ContainsInt16(s []int16, e int16) bool
- func ContainsInt32(s []int32, e int32) bool
- func ContainsInt64(s []int64, e int64) bool
- func ContainsInt8(s []int8, e int8) bool
- func ContainsUint(s []uint, e uint) bool
- func ContainsUint16(s []uint16, e uint16) bool
- func ContainsUint32(s []uint32, e uint32) bool
- func ContainsUint64(s []uint64, e uint64) bool
- func ContainsUint8(s []uint8, e uint8) bool
- func Decompress(input string, keyStrBase64 string) (string, error)
- func DecompressBody(Body []byte, encoding string) (parsedBody []byte)
- func DecryptAES(key []byte, ct []byte) []byte
- func DeflateData(data []byte) (resData []byte, err error)
- func EncryptAES(key []byte, plaintext string) []byte
- func EnflateData(data []byte) (resData []byte, err error)
- func EscapeQuotes(str string) string
- func FormatProxy(proxy string) string
- func GUnzipData(data []byte) (resData []byte, err error)
- func GenerateRandomString(length uint8) string
- func GetHashOf(text string) string
- func GetHashOfWithSalt(text, salt string, timestamp int) string
- func GetHeaderAndOrder(t HeaderType, referer *url.URL, additional ...[2]string) (header http.Header, order []string)
- func GetHexString(length int) string
- func GetID() string
- func GetIP(r *http.Request) string
- func GetLastChromeVersion() *tls.ClientHelloSpec
- func GetRandomChromeUserAgent(minVer, maxVer int) (string, string)
- func GetRequestBody(request *http.Request) []byte
- func GetResponseBody(response *http.Response) []byte
- func GetSecChUa(version int) string
- func GetTime() int64
- func JsonDumps(obj interface{}) string
- func JsonDumpsBytes(obj interface{}) []byte
- func Must(a any, e error) any
- func NewSHA256(data string) string
- func Removes(s []string, i int) []string
- func RemovesWithOrder(s []string, i int) []string
- func ReturnWeb(success any) []byte
- func ReturnWebError(error string) []byte
- func SafeGoRoutine(fn func(), recoverFns ...func())
- func UnBrotliData(data []byte) (resData []byte, err error)
- func UrlEncode(obj any) string
- func UrlEncodeMap(query map[string]string) string
- type HeaderType
- type Oauth2
- type OrderedMap
- type OrderedQuery
- type SuccessInitSensor
- type SuccessReturn
Constants ¶
View Source
const ( Version = "121" UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/" + Version + ".0.0.0 Safari/537.36" SecChUa = "\"Not A(Brand\";v=\"99\", \"Google Chrome\";v=\"121\", \"Chromium\";v=\"121\"" BrowserName = "Chrome" DeviceType = "Desktop" OsName = "Windows" OsVersion = "10" )
Variables ¶
This section is empty.
Functions ¶
func CleanAddress ¶
func ContainsInt ¶
func ContainsInt16 ¶
func ContainsInt32 ¶
func ContainsInt64 ¶
func ContainsInt8 ¶
func ContainsUint ¶
func ContainsUint16 ¶
func ContainsUint32 ¶
func ContainsUint64 ¶
func ContainsUint8 ¶
func DecompressBody ¶
DecompressBody unzips compressed data
func DecryptAES ¶
func DeflateData ¶
func EncryptAES ¶
func EnflateData ¶
func EscapeQuotes ¶
func FormatProxy ¶
func GUnzipData ¶
func GenerateRandomString ¶
func GetHashOfWithSalt ¶
func GetHeaderAndOrder ¶
func GetHexString ¶
func GetLastChromeVersion ¶
func GetLastChromeVersion() *tls.ClientHelloSpec
GetLastChromeVersion apply the latest Chrome version Current Chrome version : 111
func GetRequestBody ¶
func GetResponseBody ¶
func GetSecChUa ¶
func JsonDumpsBytes ¶
func JsonDumpsBytes(obj interface{}) []byte
func RemovesWithOrder ¶
func ReturnWebError ¶
func SafeGoRoutine ¶
func SafeGoRoutine(fn func(), recoverFns ...func())
func UnBrotliData ¶
func UrlEncodeMap ¶
Types ¶
type Oauth2 ¶
type Oauth2 struct {
// contains filtered or unexported fields
}
func (*Oauth2) GenerateCodeVerifier ¶
func (*Oauth2) GetCodeChallenge ¶
func (*Oauth2) GetCodeChallengeMethod ¶
func (*Oauth2) GetCodeVerifier ¶
type OrderedMap ¶
func (OrderedMap) MarshalJSON ¶
func (om OrderedMap) MarshalJSON() ([]byte, error)
func (*OrderedMap) UnmarshalJSON ¶
func (om *OrderedMap) UnmarshalJSON(b []byte) error
type OrderedQuery ¶
type OrderedQuery struct {
// contains filtered or unexported fields
}
func (*OrderedQuery) Add ¶
func (oq *OrderedQuery) Add(key string, value string)
func (*OrderedQuery) String ¶
func (oq *OrderedQuery) String() string
type SuccessInitSensor ¶
type SuccessReturn ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.