Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Server *gin.Engine
)
Functions ¶
func CORSMiddleware ¶
func CORSMiddleware() gin.HandlerFunc
CORSMiddleware adds CORS headers to the response. It is a middleware function for Gin framework.
func HelmetMiddleware ¶
func HelmetMiddleware() gin.HandlerFunc
HelmetMiddleware adds security headers to the response.
func LoggerMiddleware ¶
func LoggerMiddleware() gin.HandlerFunc
LoggerMiddleware logs the request and response details. It is a middleware function for Gin framework.
func RequestIDMiddleware ¶
func RequestIDMiddleware() gin.HandlerFunc
RequestIDMiddleware generates a unique request ID and sets it in the response header. It is a middleware function for Gin framework.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.