jwt

package
v0.0.0-...-67d91c4 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: MIT Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWT

type JWT struct {
	Claims jwt.MapClaims
	Secret string
	Expire int
}

func NewJWT

func NewJWT() *JWT

func (*JWT) AddClaims

func (j *JWT) AddClaims(k string, v interface{}) *JWT

func (*JWT) Get

func (j *JWT) Get(k string) interface{}

func (*JWT) GetBool

func (j *JWT) GetBool(k string) bool

func (*JWT) GetFloat64

func (j *JWT) GetFloat64(k string) float64

func (*JWT) GetInt

func (j *JWT) GetInt(k string) int

func (*JWT) GetInt64

func (j *JWT) GetInt64(k string) int64

func (*JWT) GetString

func (j *JWT) GetString(k string) string

func (*JWT) IsExpire

func (j *JWT) IsExpire() bool

func (*JWT) ParseToken

func (j *JWT) ParseToken(token string) error

func (*JWT) Print

func (j *JWT) Print()

func (*JWT) Token

func (j *JWT) Token() (string, error)

Jump to

Keyboard shortcuts

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