Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Sign = "sign" SignKey = "sign-key" SignMsg = "sign-msg" SignAuth = "sign-auth" SignError = "signature verification failed" SignEffective = "signature verification success" // 务必配置密钥,否则将无法通过签名验证 SignSecret = randomT.GenRandomStr(32) // 签名过期时间,单位为毫秒 SignTimeOut int64 = 60 * 10 * 1000 )
Functions ¶
func GenerateSignature ¶
func SignAuthMiddleware ¶
func SignAuthMiddleware() gin.HandlerFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.