Documentation ¶
Index ¶
- func ExtractToken(c *gin.Context) (string, error)
- func GetUserId(c *gin.Context) (int32, error)
- func GetUserUsername(c *gin.Context) (string, error)
- func IsEmail(identifier string) bool
- func JwtAuthMiddleware() gin.HandlerFunc
- func MakeHTTPRequest(c *gin.Context, method string, url string, requestBody interface{}) ([]byte, int, error)
- func NewError(ctx *gin.Context, status int, err error)
- func TokenValid(c *gin.Context) error
- type HTTPError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JwtAuthMiddleware ¶
func JwtAuthMiddleware() gin.HandlerFunc
func MakeHTTPRequest ¶
func TokenValid ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.