util

package
v0.0.0-...-0dfd234 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPasswordHash

func CheckPasswordHash(password, hash string) bool

func DeleteAuth

func DeleteAuth(c *gin.Context)

func GetAuthNow

func GetAuthNow() int64

func GetNewTodoId

func GetNewTodoId() uuid.UUID

func GetNewUserId

func GetNewUserId() uuid.UUID

func GetUserIdByToken

func GetUserIdByToken(c *gin.Context) (uuid.UUID, error)

func HashPassword

func HashPassword(password string) (string, error)

func IsSameType

func IsSameType(a interface{}, b interface{}) bool

func ParseJwtToken

func ParseJwtToken(clientToken string) (*authClaims, error)

func SetAuth

func SetAuth(c *gin.Context, userId string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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