package
0.0.0-20240507122243-824c3f2cf635
Repository: https://github.com/sunliang711/aliddns2.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
GenJwtToken 使用key作为签名秘钥来生成jwt token,并且在token里包含了自定义数据data 当配置文件中包含jwt.exp字段,并且该字段大于零时,在jwt token里会加入exp来表示token过期时间 单位是小时.
GetValueFromJwtToken 从ctx中解析jwt token(token存在于请求头的"jwt.headerName"中) 并从解析出来的对象中取得mapkey的值(interface{}类型) v,进一步可使用v.(someType)来转成具体类型.
LogLevel translate string to logrus.Level.
ParseJwtToken 解析jwt token,返回*jwt.Token对象.