Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthMiddleware ¶
func AuthMiddleware() gin.HandlerFunc
AuthMiddleware validates the JWT token and stores user info in context
func ComparePassword ¶
ComparePassword compares hashed password with raw input
func GenerateToken ¶
GenerateToken creates a new JWT token for the given username In single-user mode, username can be any identifier
func HashPassword ¶
HashPassword hashes a raw password
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.