middlewares

package
v0.0.0-...-b9c7da6 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authorized

func Authorized(c *gin.Context)

Authorized blocks unauthorized requestrs

func Category

func Category(c *gin.Context)

func Comment

func Comment(c *gin.Context)

func JWTMiddleware

func JWTMiddleware() gin.HandlerFunc

JWTMiddleware parses JWT token from cookie and stores data and expires date to the context JWT Token can be passed as cookie, or Authorization header

func Project

func Project(c *gin.Context)

func Task

func Task(c *gin.Context)

Types

type User

type User = models.User

Jump to

Keyboard shortcuts

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