Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BasicAuth ¶
func BasicAuth() gin.HandlerFunc
BasicAuth is a middleware to check basic authentication. The auth middleware is used for WebDAV service, refer to: http://www.webdav.org/specs/rfc2617.html#n-basic-authentication-scheme
func CORS ¶
func CORS() gin.HandlerFunc
CORS creates a new CORS Gin middleware with default options. It is a wrapper of cors.Cors handler.
func JWT ¶
func JWT() gin.HandlerFunc
func LoggerToFile ¶ added in v0.0.2
func LoggerToFile() gin.HandlerFunc
LoggerToFile is a custom logger middleware, it writes logs to os.Stdout and a file. And uses a custom log format function.
func NoIndex ¶ added in v0.0.3
func NoIndex() gin.HandlerFunc
func RequestID ¶
func RequestID() gin.HandlerFunc
func Sentry ¶
func Sentry() gin.HandlerFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.