util

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesEncrypt

func AesEncrypt(data, key []byte) []byte

func Debug added in v0.5.1

func Debug(req *http.Request) *http.Response

func DebugResp added in v0.5.1

func DebugResp(resp *http.Response)

func DecryptAES added in v0.6.0

func DecryptAES(key []byte, ct string) string

func EncodeParam

func EncodeParam(v url.Values) string

func FindCookie

func FindCookie(cookies []*http.Cookie, name string) *http.Cookie

Find special name cookie

func FindCookieValue added in v0.5.1

func FindCookieValue(cookies []*http.Cookie, name string) string

func GetReq added in v0.5.1

func GetReq(u string, params url.Values) (*http.Request, error)

func Key

func Key(key string) []byte

func PKCS7Padding

func PKCS7Padding(ciphertext []byte, blockSize int) []byte

func Random

func Random(v string) string

func RsaEncrypt

func RsaEncrypt(key []byte, data []byte) ([]byte, error)

func Sha1 added in v0.5.1

func Sha1(v, l string) string

Types

type TaskPool added in v0.6.2

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

func NewTask added in v0.6.2

func NewTask(num int) *TaskPool

func (*TaskPool) Close added in v0.6.2

func (c *TaskPool) Close()

func (*TaskPool) Run added in v0.6.2

func (c *TaskPool) Run(task func())

func (*TaskPool) Wait added in v0.6.2

func (c *TaskPool) Wait()

Jump to

Keyboard shortcuts

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