security

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2025 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractToken

func ExtractToken(c *gin.Context) string

func ExtractTokenID

func ExtractTokenID(c *gin.Context) (uint, error)

func GenerateToken

func GenerateToken(userID uint) (string, error)

func HashPassword

func HashPassword(password string) (string, error)

func JwtAuthAdminProcessor

func JwtAuthAdminProcessor() gin.HandlerFunc

func JwtAuthProcessor

func JwtAuthProcessor() gin.HandlerFunc

func TokenValid

func TokenValid(c *gin.Context) error

func VerifyPassword

func VerifyPassword(password, hashedPassword 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