network

package
v0.0.0-...-036fa85 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 15 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(url string) ([]byte, error)

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

func HttpStrings

func HttpStrings(url string) string

HttpStrings 远程读取,返回 string 类型

func Req

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

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

func ReqStrings

func ReqStrings(url string) string

ReqStrings 远程读取,返回 string 类型

func Resty

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

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

func RestyStrings

func RestyStrings(url 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) CurlUpload

func (transfer Transfer) CurlUpload() 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