Documentation ¶
Index ¶
- Constants
- func B64toHex(b64str string) (hexstr string)
- func CheckFileNameValid(name string) bool
- func ClientSn() string
- func DateOfGmtStr() string
- func PcClientInfoSuffixParam() string
- func Rand() string
- func SignatureOfHmac(secretKey, sessionKey, operate, url, dateOfGmt string) string
- func SignatureOfMd5(params map[string]string) string
- func Timestamp() int
- func Uuid() string
- func XRequestId() string
Constants ¶
View Source
const ( RsaPublicKey = `` /* 271-byte string literal not displayed */ FileNameSpecialChars = "\\/:*?\"<>|" )
Variables ¶
This section is empty.
Functions ¶
func CheckFileNameValid ¶
CheckFileNameValid 检测文件名是否有效,包含特殊字符则无效
func DateOfGmtStr ¶
func DateOfGmtStr() string
func PcClientInfoSuffixParam ¶
func PcClientInfoSuffixParam() string
PcClientInfoSuffixParam PC客户端URL请求后缀信息
func SignatureOfHmac ¶
SignatureOfHmac HMAC签名
func XRequestId ¶
func XRequestId() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.