utils

package
v0.0.0-...-d9c3df7 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeBase64String

func DecodeBase64String(str string) string

DecodeBase64String decode the base64 string return string

func EncodeBase64String

func EncodeBase64String(str string) string

EncodeBase64String Base64Encode encodes the given string to base64

func GetCode

func GetCode(codeLen int) string

GetCode 获取一个随机用户唯一编号

func GetIPToUrlsLinks(ip string, urls []string) []string

func GetProxyUrl

func GetProxyUrl(proxy string) (proxys string)

func GetUA

func GetUA() string

GetUA UserAgent generates a random user agent

func InIt

func InIt(mode int, timeout int, proxy string, retry int, h1 bool, redirect bool) (client *req.Client)

func IsProxyUrl

func IsProxyUrl(proxy string) bool

func Mkdir

func Mkdir(dir string) error

Mkdir 创建文件夹

func ReadFile

func ReadFile(path string) (urls []string, err error)

func SaveToFile

func SaveToFile(content string, file string) error

SaveToFile 保存结果到目标文件

func Send

func Send(hashmap map[string]interface{}) (resp *req.Response)

func SetRequest

func SetRequest(req *req.Request, headers map[string]string, body string) *req.Request

SetRequest 设置请求头和请求boby

Types

type Dnslog

type Dnslog struct {
	// contains filtered or unexported fields
}

func (*Dnslog) GetDnslog

func (d *Dnslog) GetDnslog() bool

func (*Dnslog) Id

func (d *Dnslog) Id() string

func (*Dnslog) Pre

func (d *Dnslog) Pre() string

func (*Dnslog) SetId

func (d *Dnslog) SetId(id string)

func (*Dnslog) SetPre

func (d *Dnslog) SetPre(pre string)

Jump to

Keyboard shortcuts

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