Middleware

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2019 License: AGPL-3.0 Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHeaders

func AddHeaders(c *gin.Context)

func AuthJWT

func AuthJWT(db *gorm.DB, conf configuration.Configuration) gin.HandlerFunc

func DBMiddleware

func DBMiddleware(db *gorm.DB) gin.HandlerFunc

func LicenseMiddleware

func LicenseMiddleware(lic configuration.License) gin.HandlerFunc

Types

type Payload

type Payload struct {
	JTI string `json:"jti"`
	ISS string `json:"iss"`
	SUB string `json:"sub"`
	AUD string `json:"aud"`
	EXP int    `json:"exp"`
	IAT int    `json:"iat"`
}

Jump to

Keyboard shortcuts

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