common

package
v0.0.0-...-3a6d849 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB

Functions

func GetDB

func GetDB() *gorm.DB

func InitDB

func InitDB() *gorm.DB

func ReleaseToken

func ReleaseToken(user model.User) (string, error)

Types

type Claims

type Claims struct {
	UserId uint
	jwt.StandardClaims
}

func ParseToken

func ParseToken(tokenString string) (*jwt.Token, *Claims, error)

Jump to

Keyboard shortcuts

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