middlewares

package
v0.0.0-...-b51db10 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: MIT Imports: 8 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 cookie/header

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