package
0.0.0-20241024022210-d31617f01746
Repository: https://github.com/maclon-lee/golanglib.git
Documentation: pkg.go.dev

# Functions

* 规范化Authorization值 * * param signature 签名串 * param accessKey AppKey * param signedHeaders 排序后的头信息key名 * return Authorization值 */.
* 拼装头信息,排序后 * * param r Request对象 * param signerHeaders 排序后的头信息key名 * return 头信息串 */.
拼装URL请求参数,排序后.
* 参与哈希值计算的数据规范 * * CanonicalRequest = * HTTPRequestMethod + '\n' + * CanonicalURI + '\n' + * CanonicalQueryString + '\n' + * CanonicalHeaders + '\n' + * SignedHeaders + '\n' + * HexEncode(Hash(RequestPayload)) * * param r Request对象 * param signedHeaders 排序后的头信息key名 * return 规范字符串 */.
拼装请求路径,不含Host.
sha256 + hexcode计算.
填充.
反填充.
取请求Body内容.
拼装头信息key名,排序后.
* 签名 * * param stringToSign 待签名字符串 * param signingKey 私钥 * return 签名串 */.
* 计算规范字符串的哈希值 * * param canonicalRequest 规范字符串 * param t 请求时间 * return 待签名字符串 */.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

鉴权对象.