Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Package level variables, which are pointer to log.Logger.
Functions ¶
func AuthorizeRequest ¶
AuthorizeRequest Middleware validates JWT tokens from incoming HTTP requests.
func DisplayAppError ¶
func DisplayAppError(w http.ResponseWriter, handlerError error, message string, code int)
DisplayAppError provides app specific error in JSON
func GenerateJWT ¶
GenerateJWT generates a new JWT token for authenticated user.
Types ¶
Click to show internal directories.
Click to hide internal directories.