utils

package
v0.0.0-...-b7730f3 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeMD5

func EncodeMD5(value string) string

EncodeMD5 md5 encryption

func GenerateTokens

func GenerateTokens(userId float64) (string, string, error)

func ParseToken

func ParseToken(token string) (jwt.MapClaims, error)

ParseToken parsing token

Types

type UserClaims

type UserClaims struct {
	ID             float64   `json:"id"`
	ExpirationTime time.Time `json:"exp"`
}

func GetTokenDetails

func GetTokenDetails(ctx context.Context) (UserClaims, error)

Jump to

Keyboard shortcuts

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