Documentation ¶
Index ¶
- Variables
- func CheckSignaturesFromIrisContext(ctx iris.Context, token string) bool
- func CheckSingatures(signature string, params *structs.QuerySignatureParams, token string) bool
- func CreateSignatures() (params structs.QuerySignatureParams, token string)
- func GenerateSignatures(params *structs.QuerySignatureParams, token string)
- func GetNowTimeString() string
- func InitGlobal()
- func JSONStringByteToObject(jsonStrByte []byte, obj interface{}) bool
- func JSONStringToObject(jsonStr string, obj interface{}) bool
- func ObjectToJSONString(obj interface{}, format bool) string
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalConfig structs.SystemConfiguration
Functions ¶
func CheckSignaturesFromIrisContext ¶
从Iris的上下文里获取并校验签名信息
func CheckSingatures ¶
func CheckSingatures(signature string, params *structs.QuerySignatureParams, token string) bool
检查签名
func CreateSignatures ¶
func CreateSignatures() (params structs.QuerySignatureParams, token string)
创建签名参数
func GenerateSignatures ¶
func GenerateSignatures(params *structs.QuerySignatureParams, token string)
进行签名运算
func InitGlobal ¶
func InitGlobal()
func JSONStringByteToObject ¶
JSON字节流转对象
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.