middleware package - github.com/criller/go-ddd-lite-starter/internal/middleware - Go Packages

middleware

package
v0.0.0-...-9dddfe8 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(jwtManager *jwt.JWT) gin.HandlerFunc

Auth JWT 认证中间件

func CORS

func CORS(cfg config.CORSConfig) gin.HandlerFunc

CORS 跨域中间件

func Logger

func Logger(log logger.Logger) gin.HandlerFunc

Logger 日志中间件

func Recovery

func Recovery(log logger.Logger) gin.HandlerFunc

Recovery 恢复中间件,捕获 panic

func RequestID

func RequestID() gin.HandlerFunc

RequestID 请求ID中间件

Types

This section is empty.

Jump to

Keyboard shortcuts

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