middlewares

package
v0.0.0-...-a1e0d03 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authorized

func Authorized(c *gin.Context)

Authorized is used for blocking unauthorized requests

func JWTMiddleware

func JWTMiddleware() gin.HandlerFunc

JWTMiddleware parses jwt token from header or cookie

Types

type User

type User = models.User

User model alias

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL