jwt

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(conf *ec.JWT, watcher *watcher.Watcher)

Types

type Jwt

type Jwt interface {
	NewToken(data interface{}) (string, error)
	ParseToken(ctx context.Context, dst interface{}) error
	ParseTokenMapClaims(ctx context.Context) (map[string]interface{}, error)
	IsWhitelist(path string) bool
}

func Instance

func Instance() Jwt

Instance 获取email对象实例

Jump to

Keyboard shortcuts

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