utils

package
v0.0.0-...-692b726 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPassword

func CheckPassword(pass string, hashed_pass string) error

func EnvVariablesInit

func EnvVariablesInit()

func Generate_JWT_Token

func Generate_JWT_Token(id string, username string, email string) (string, error)

func Get_Env_Variable

func Get_Env_Variable(key string) string

func HashPassword

func HashPassword(raw_pass string) (string, error)

func RemoveElementFromArray

func RemoveElementFromArray(arr []string, element string) []string

func RemoveElementFromArrayUUID

func RemoveElementFromArrayUUID(arr []gocql.UUID, element gocql.UUID) []gocql.UUID

Types

type CustomClaims

type CustomClaims struct {
	ID       string `json:"id"`
	Username string `json:"username"`
	Email    string `json:"email"`
	jwt.RegisteredClaims
}

func Verify_JWT_Token

func Verify_JWT_Token(token_value string) (*CustomClaims, error)

Jump to

Keyboard shortcuts

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