middlewares

package
v0.0.0-...-a7c99a5 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2018 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthRequired

func AuthRequired() gin.HandlerFunc

AuthRequired func to check token in header

func CORS

func CORS() gin.HandlerFunc

CORS func

func GetUserIDFromToken

func GetUserIDFromToken(token string) (int64, error)

GetUserIDFromToken func return userid to check permission

func SetToken

func SetToken(c *gin.Context)

SetToken func

Types

This section is empty.

Jump to

Keyboard shortcuts

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