Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthMiddleware ¶
func AuthMiddleware(next http.HandlerFunc) http.HandlerFunc
func GenerateJWT ¶
GenerateJWT generates a new JWT token for a given username
func IsAuthorized ¶
func ValidateUser ¶
This is a placeholder for the actual login logic. You need to replace it with your own login validation logic.
Types ¶
Click to show internal directories.
Click to hide internal directories.