util

package
v1.1.0-20220312 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Checker = checker{
	// contains filtered or unexported fields
}
View Source
var Log loG

Functions

func Base64

func Base64(s []byte) string

func CallBackStr

func CallBackStr() string

CallBackStr 生成随机时间戳字符串

func GenerateLoginInfo

func GenerateLoginInfo(https bool, Form *srunTransfer.LoginForm, Meta *srunTransfer.LoginMeta) *srunModels.LoginInfo

func GetInterfaceAddr

func GetInterfaceAddr() ([]srunModels.Eth, error)

func GetIp

func GetIp(body string) (string, error)

GetIp 从响应获取本机分配到的IP

func GetResult

func GetResult(body string) (string, error)

GetResult 从响应获取登录结果

func GetToken

func GetToken(body string) (string, error)

GetToken 从响应获取token

func Md5

func Md5(content string) string

Md5 编码

func Search(reg string, content string) (string, error)

func Sha1

func Sha1(content string) string

Sha1 编码

func XEncode

func XEncode(content string, key string) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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