middleware

package
v0.0.0-...-3839eb7 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindBadParamsHandler

func BindBadParamsHandler() bind.Handler

func NoMethodHandler

func NoMethodHandler() gin.HandlerFunc

NoMethodHandler no method handler

func NotFoundHandler

func NotFoundHandler() gin.HandlerFunc

NotFoundHandler 404 handler

func UseAcceptLanguage

func UseAcceptLanguage(defaultLanguage string) gin.HandlerFunc

UseAcceptLanguage get accept language from http header

func UseAuthenticate

func UseAuthenticate(v authen.TokenParser) gin.HandlerFunc

func UseCors

func UseCors(cors *httpx.Cors) gin.HandlerFunc

UseCors gin cors middleware

func UseLogger

func UseLogger(logger *logrus.Logger, skips ...string) gin.HandlerFunc

func UseOpenAPIAuth

func UseOpenAPIAuth(author authen.KeyAuthor) gin.HandlerFunc

func UseRecovery

func UseRecovery(logger *logrus.Logger) gin.HandlerFunc

UseRecovery handler chain recover

func UseRequestId

func UseRequestId() gin.HandlerFunc

func UseRoleAuthorize

func UseRoleAuthorize(resolver role.Resolver, userRole user.UserInfo) gin.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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