middlewares

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorLogger

func ErrorLogger() gin.HandlerFunc

func ErrorLoggerT

func ErrorLoggerT(t gin.ErrorType) gin.HandlerFunc

func GenerateToken

func GenerateToken(user *LiquidModels.LiquidUser) string

func GetLiquidData

func GetLiquidData() gin.HandlerFunc

func GetLiquidResult

func GetLiquidResult(liquidData interface{}) string

func GinLogger

func GinLogger(duration time.Duration) gin.HandlerFunc

func VerifyToken

func VerifyToken() gin.HandlerFunc

Types

type LoginClaims

type LoginClaims struct {
	Audience   string `json:"aud,omitempty"`
	ExpiresAt  int64  `json:"exp,omitempty"`
	IssuedAt   int64  `json:"iat,omitempty"`
	AutoId     string `json:"aid,omitempty"`
	InviteCode string `json:"ivc,omitempty"`
	FromType   string `json:"ftp,omitempty"`
	FromId     string `json:"fid,omitempty"`
}

Jump to

Keyboard shortcuts

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