Documentation
¶
Overview ¶
Package pkg jwt.go Author: 王辉 Created: 2025-03-27 01:40 之前没考虑到时区,先默认+8区,以后做国际化的时候加上 要把密钥转换成[]byte类型
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenJwtToken ¶
GenJwtToken 生成 JWT
func ParseToken ¶
ParseToken 解析 JWT,并检查是否过期,同时返回可读的过期时间
func PushClient ¶
func PushClient(consuls string) v2.PushClient
func UserClient ¶
func UserClient(consuls string) v1.UserClient
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.