Documentation ¶
Index ¶
- func AuthCheckRole() gin.HandlerFunc
- func AuthInit() (*jwt.GinJWTMiddleware, error)
- func Cors() gin.HandlerFunc
- func CustomError(c *gin.Context)
- func InitMiddleware(r *gin.Engine)
- func LoggerToFile() gin.HandlerFunc
- func NoCache(c *gin.Context)
- func Options(c *gin.Context)
- func RequestId() gin.HandlerFunc
- func Secure(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthInit ¶
func AuthInit() (*jwt.GinJWTMiddleware, error)
func Cors ¶
func Cors() gin.HandlerFunc
func CustomError ¶
func InitMiddleware ¶
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.
func RequestId ¶
func RequestId() gin.HandlerFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.