utils

package
v0.0.0-...-154cf9e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func CheckSignaturesFromIrisContext

func CheckSignaturesFromIrisContext(ctx iris.Context, token string) bool

从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 GetNowTimeString

func GetNowTimeString() string

获取当前系统时间并按照中国的格式标准表达

func InitGlobal

func InitGlobal()

func JSONStringByteToObject

func JSONStringByteToObject(jsonStrByte []byte, obj interface{}) bool

JSON字节流转对象

func JSONStringToObject

func JSONStringToObject(jsonStr string, obj interface{}) bool

JSON字符串转对象

func ObjectToJSONString

func ObjectToJSONString(obj interface{}, format bool) string

对象转JSON字符串

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL