lib

package
v1.13.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2022 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPlt

func AddPlt(url string) string

func AutomaticTranscoding

func AutomaticTranscoding(contentType string, data []byte) (result []byte, err error)

func BuildURLParams

func BuildURLParams(userURL string, params url.Values) (string, error)

handle URL params

func GZipData

func GZipData(data []byte) (compressedData []byte, err error)

func Random

func Random(min, max int) int

func RandomIp

func RandomIp() string

随机生成合法 IP,如: 222.16.123.95

func RandomOmicIp

func RandomOmicIp() string

随机生成(隐蔽后两位的)合法 IP,如: 222.16.*.*

func ReptileGetUserAgent

func ReptileGetUserAgent() string

获取随机UserAgent

func SetTimeoutDialer

func SetTimeoutDialer(cTimeout time.Duration, rwTimeout time.Duration) func(net, addr string) (c net.Conn, err error)

func UnGzipData

func UnGzipData(data []byte) (resData []byte, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL