middleware

package
v0.0.0-...-ef7a112 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMiddleware

func AuthMiddleware(accessControlService *accesscontrol.Service) gin.HandlerFunc

func CORS

func CORS() gin.HandlerFunc

func ErrLogger

func ErrLogger() gin.HandlerFunc

ErrLogger is a middleware that logs errors

func Errors

func Errors(shutdown chan os.Signal) gin.HandlerFunc

Errors handles errors coming out of the call stack. It detects safe application errors (aka SafeError) that are used to respond to the requester in a normalized way. Unexpected errors (status >= 500) are logged.

Types

This section is empty.

Jump to

Keyboard shortcuts

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