middleware

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2021 License: MIT Imports: 8 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthID uint64

AuthID - Access details

View Source
var JWTExpireTime int

JWTExpireTime ...

View Source
var MySigningKey []byte

MySigningKey ...

Functions

func CORS

func CORS() gin.HandlerFunc

CORS middleware

func GetJWT

func GetJWT(id uint64, email string) (string, error)

GetJWT ...

func JWT

func JWT() gin.HandlerFunc

JWT ...

func SentryCapture added in v1.2.4

func SentryCapture(sentryDsn string) gin.HandlerFunc

SentryCapture ...

Types

type MyCustomClaims

type MyCustomClaims struct {
	ID    uint64 `json:"Id"`
	Email string `json:"Email"`
	jwt.StandardClaims
}

MyCustomClaims ...

Jump to

Keyboard shortcuts

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