network

package
v0.0.0-...-6b17055 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateHttpClient

func CreateHttpClient() *http.Client

func CreateReqClient

func CreateReqClient() *req.Client

func CreateRestyClient

func CreateRestyClient() *resty.Client

func FileIORead

func FileIORead(url string) string

FileIORead 读取 file.io 的加密文件, 只能读取 1 次

func GetRandomAgent

func GetRandomAgent() map[string]string

func Http

func Http(target string, proxy string) ([]byte, error)

Http 远程读取,返回 []byte 类型

func HttpStrings

func HttpStrings(target string, proxy string) string

HttpStrings 远程读取,返回 string 类型

func Req

func Req(url string, proxy string) ([]byte, error)

Req 远程读取,返回 []byte 类型

func ReqIOReader

func ReqIOReader(url string, proxy string) io.Reader

ReqIOReader 远程读取,返回 string 类型

func ReqStrings

func ReqStrings(url string, proxy string) string

ReqStrings 远程读取,返回 string 类型

func Resty

func Resty(url string, proxy string) ([]byte, error)

Resty 远程读取,返回 []byte 类型

func RestyStrings

func RestyStrings(url string, proxy string) string

RestyStrings 远程读取,返回 string 类型

func UCRead

func UCRead(fn string) string

Types

type FileIO

type FileIO struct {
	Src  string // 上传的加密文件
	Path string // 加密文件文件的路径
}

func (FileIO) FileIOUpload

func (fi FileIO) FileIOUpload() string

FileIOUpload 获取上传 file.io 后的文件Url

type Transfer

type Transfer struct {
	Src   string // 上传的加密文件
	Path  string // 加密文件文件的路径
	Proxy string // curl代理配置
}

func (Transfer) TransferUpload

func (transfer Transfer) TransferUpload() string

type UsersCloud

type UsersCloud struct {
	Src  string // 上传的加密文件
	Path string // 加密文件文件的路径
}

func (UsersCloud) UCUpload

func (uc UsersCloud) UCUpload() string

Jump to

Keyboard shortcuts

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