jwt

package
v1.0.18 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: MulanPSL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HS256 = "HS256"
)

Variables

This section is empty.

Functions

func GetPayload

func GetPayload(token string) ([]byte, error)

func Sign

func Sign(payload interface{}) (ret string, err error)

====================== 业务板块 ======================

func Verify

func Verify(token string) (err error)

Types

type Instance

type Instance struct {
	Secret string `yaml:"secret_key"`
}

============================================================ * * 功能:jwt 加解密 * ============================================================

func (*Instance) GetName

func (i *Instance) GetName() string

func (*Instance) Run

func (i *Instance) Run() error

Jump to

Keyboard shortcuts

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