util

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: MIT Imports: 30 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UNMSwitch          bool
	Sources            []string
	ForceBestQuality   bool
	SearchLimit        int
	EnableLocalVip     bool
	UnlockSoundEffects bool
	QQCookieFile       string
)

Functions

func ConfigInit

func ConfigInit()

func ConfigReload

func ConfigReload()

func CreateRequest

func CreateRequest(method, url string, data map[string]string, options *Options) (resCode float64, resResp []byte, resCookies []*http.Cookie)

func Eapi

func Eapi(url string, data map[string]interface{}) map[string]string

func Linuxapi

func Linuxapi(data map[string]interface{}) map[string]string

func NewLen16Rand

func NewLen16Rand() ([]byte, []byte)

func RandStringRunes

func RandStringRunes(n int) string

RandStringRunes 返回随机字符串

func SetGlobalCookieJar

func SetGlobalCookieJar(jar http.CookieJar)

func Weapi

func Weapi(data map[string]string) map[string]string

Types

type Options

type Options struct {
	Crypto  string
	Ua      string
	Cookies []*http.Cookie
	Token   string
	Url     string
	SkipUNM bool
}

Jump to

Keyboard shortcuts

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