jwt

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clamis

type Clamis struct {
	UUID uuid.UUID `json:"uuid"`
}

func (*Clamis) ToAccount added in v1.0.1

func (c *Clamis) ToAccount(ctx *gin.Context) (*model.Account, error)

type JwtEncoding

type JwtEncoding interface {
	MustEncode(c *Clamis) string
	Decode(s string) (*Clamis, bool)
	Expire() int
}

func NewJwt

func NewJwt(secret []byte, expire int) JwtEncoding

Jump to

Keyboard shortcuts

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