middleware

package
v0.0.0-...-596c4a4 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JwtServer

func JwtServer(signKey string) middleware.Middleware

JwtServer jwt server

Types

type JwtClaims

type JwtClaims struct {
	Token string `json:"token"`
	Name  string `json:"name"`
	*jwtv5.RegisteredClaims
	// contains filtered or unexported fields
}

JwtClaims jwt claims

func NewJwtClaims

func NewJwtClaims(c *config.JWT, token string) *JwtClaims

func (*JwtClaims) GetToken

func (l *JwtClaims) GetToken() (string, error)

GetToken get token

Jump to

Keyboard shortcuts

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