auth

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJwt added in v1.0.0

func NewJwt(key []byte) *jwtImpl

NewJwt return jwtImpl instance

Types

type Jwt

type Jwt interface {
	// 生成token
	GenerateToken(claims jwt.Claims) (string, error)
	// 解析token
	ParseToken(token string) (jwt.Claims, error)
}

Jump to

Keyboard shortcuts

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