apiutil

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RsaPublicKey = `` /* 271-byte string literal not displayed */

	FileNameSpecialChars = "\\/:*?\"<>|"
)

Variables

This section is empty.

Functions

func B64toHex

func B64toHex(b64str string) (hexstr string)

B64toHex 将base64字符串转换成HEX十六进制字符串

func CheckFileNameValid

func CheckFileNameValid(name string) bool

CheckFileNameValid 检测文件名是否有效,包含特殊字符则无效

func ClientSn

func ClientSn() string

func DateOfGmtStr

func DateOfGmtStr() string

func PcClientInfoSuffixParam

func PcClientInfoSuffixParam() string

PcClientInfoSuffixParam PC客户端URL请求后缀信息

func Rand

func Rand() string

func SignatureOfHmac

func SignatureOfHmac(secretKey, sessionKey, operate, url, dateOfGmt string) string

SignatureOfHmac HMAC签名

func SignatureOfMd5

func SignatureOfMd5(params map[string]string) string

SignatureOfMd5 MD5签名

func Timestamp

func Timestamp() int

func Uuid

func Uuid() string

func XRequestId

func XRequestId() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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