engine

package
v0.0.0-...-708a039 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbortWithError

func AbortWithError(c *gin.Context, err error)

func ErrorHandler

func ErrorHandler(c *gin.Context)

ErrorHandler a middleware to handle errors

func HeaderToken

func HeaderToken(c *gin.Context) *token.Token

HeaderToken token from Authorization header

func RAWHeaderToken

func RAWHeaderToken(c *gin.Context) (string, error)

RAWHeaderToken token from Authorization header

func Router

func Router() *gin.Engine

func ValidateAdmin

func ValidateAdmin(c *gin.Context)

ValidateAdmin check admin user is logged in

func ValidateLoggedIn

func ValidateLoggedIn(c *gin.Context)

ValidateLoggedIn user

Types

This section is empty.

Jump to

Keyboard shortcuts

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