Documentation ¶
Index ¶
- func CheckAccess(OpUserID string, OwnerUserID string) bool
- func CreateToken(userID string, platformID int) (string, int64, error)
- func DeleteToken(userID string, platformID int) error
- func GetUserIDAndPlatformIDFromToken(token string, operationID string) (bool, string, string, int32)
- func GetUserIDFromToken(token string, operationID string) (bool, string, string)
- func GetUserIDFromTokenExpireTime(token string, operationID string) (bool, string, string, int64)
- func IsAppManagerAccess(token string, OpUserID string) bool
- func IsManagerUserID(OpUserID string) bool
- func ParseTokenGetUserID(token string, operationID string) (error, string)
- func VerifyToken(token, uid string) (bool, error)
- func WsVerifyToken(token, uid string, platformID string, operationID string) (bool, error, string)
- type Claims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAccess ¶
func DeleteToken ¶
func GetUserIDFromToken ¶
func IsAppManagerAccess ¶
func IsManagerUserID ¶
func ParseTokenGetUserID ¶
func VerifyToken ¶
Validation token, false means failure, true means successful verification
Types ¶
type Claims ¶
func BuildClaims ¶
func GetClaimFromToken ¶
func ParseToken ¶
Click to show internal directories.
Click to hide internal directories.