jwt

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: MIT Imports: 8 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)
}

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