auth

package
v0.0.0-...-e6d3209 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JwtService

type JwtService struct {
	Token     *jwt.Token
	TokenStr  string
	LoginType string
}

func (*JwtService) CheckToken

func (this *JwtService) CheckToken(TokenStr string) (string, int)

func (*JwtService) CreateToken

func (this *JwtService) CreateToken(name, pwd, userType string) models.Result

func (*JwtService) GetUserFromToken

func (this *JwtService) GetUserFromToken() (string, bool)

Jump to

Keyboard shortcuts

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