//
pkg.gl
Category
github.com/tencent-connect/botgo
interaction
signature
package
0.1.6
Repository:
https://github.com/tencent-connect/botgo.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
8
Dependents
2
Files
98 SLOC
#
Functions
Generate
Generate 生成签名,sdk 中的改方法,主要用于与验证签名方法配合进行验证.
Verify
Verify 验证签名,需要传入 http 头,httpBody 请在方法外部从 http request 上读取了 body 之后再交给签名验证方法进行验证,避免重复读取.
#
Constants
HeaderSig
HeaderSig 请求签名.
HeaderTimestamp
HeaderTimestamp 跟请求签名对应的时间戳,用于验证签名.