middlewares

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth() gin.HandlerFunc

func Cors

func Cors() gin.HandlerFunc

func ForceUA

func ForceUA() gin.HandlerFunc

ForceUA Force the request header to include a User-Agent.

func GetAllowOrigin

func GetAllowOrigin() (origin string)

func Logger

func Logger() gin.HandlerFunc

Logger 记录请求日志

func Recovery

func Recovery() gin.HandlerFunc

Recovery 使用 zap.Error 来记录 Panic 和 call stack

Types

This section is empty.

Jump to

Keyboard shortcuts

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