middleware

package
v0.0.0-...-ab91d5a Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const RequestRoleKey string = "mogutou-Role"

RequestRoleKey context key值

View Source
const RequestUserIDKey string = "mogutou-UserID"

RequestUserIDKey context key值

View Source
const RequestUserNameKey string = "mogutou-UserName"

RequestUserNameKey context key值

Variables

This section is empty.

Functions

func Admin

func Admin(c *gin.Context)

Admin jwt鉴权

func Auth

func Auth(c *gin.Context)

Auth jwt鉴权

Types

This section is empty.

Jump to

Keyboard shortcuts

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