middleware

package
v0.3.9-9 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

View Source
const (
	XAuthTokenKey = "X-Auth-Token"
)

Variables

This section is empty.

Functions

func ErrorHandler

func ErrorHandler(c *gin.Context)

func ErrorLogger

func ErrorLogger() gin.HandlerFunc

ErrorLogger returns an ErrorLoggerT with parameter gin.ErrorTypeAny

func ErrorLoggerT

func ErrorLoggerT(typ gin.ErrorType) gin.HandlerFunc

ErrorLoggerT returns an ErrorLoggerT middleware with the given type gin.ErrorType.

func KeystoneTokenVerifyMiddleware

func KeystoneTokenVerifyMiddleware() gin.HandlerFunc

func Logger

func Logger() gin.HandlerFunc

Logger prints a logline for each request and measures the time to process for a call. It formats the log entries similar to http://godoc.org/github.com/gin-gonic/gin#Logger does.

Example:

router := gin.New()
router.Use(ginglog.Logger())

Types

This section is empty.

Jump to

Keyboard shortcuts

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