common

package
v0.0.0-...-459e612 Latest Latest
Warning

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

Go to latest
Published: May 19, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UserIDCtxKey = userIDKey{}
)

Functions

func GenerateJWT

func GenerateJWT(userID string) (string, error)

GenerateJWT 生成 jwt

func GetJWTFromGinCtx

func GetJWTFromGinCtx(c *gin.Context) (*jwt.Token, error)

GetJWTFromGinCtx ...

Types

This section is empty.

Directories

Path Synopsis
middlewares

Jump to

Keyboard shortcuts

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