Documentation ¶
Index ¶
- func AuthMiddleware() gin.HandlerFunc
- func IsAdmin(c *gin.Context) (bool, error)
- func Logging() gin.HandlerFunc
- func NoCache(c *gin.Context)
- func Options(c *gin.Context)
- func PermissionMiddleware() gin.HandlerFunc
- func RequestID() gin.HandlerFunc
- func Secure(c *gin.Context)
- func SignMd5Middleware() gin.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Logging ¶
func Logging() gin.HandlerFunc
Logging is a middleware function that logs the each request.
func NoCache ¶
NoCache is a middleware function that appends headers to prevent the client from caching the HTTP response.
func Options ¶
Options is a middleware function that appends headers for options requests and aborts then exits the middleware chain and ends the request.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.