Documentation
¶
Index ¶
- func BasicAuth() gin.HandlerFunc
- func Configs(conf *configs.Configs) gin.HandlerFunc
- func Cors() gin.HandlerFunc
- func CustomErrorHandler(c *gin.Context, err error)
- func CustomLimitReachedHandler(c *gin.Context)
- func Empty() gin.HandlerFunc
- func Gzip() gin.HandlerFunc
- func Header() gin.HandlerFunc
- func LoggerWithFormatter() gin.HandlerFunc
- func RateLimiter() gin.HandlerFunc
- func Referer() gin.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Configs ¶
func Configs(conf *configs.Configs) gin.HandlerFunc
Configs Configs with Viper Viper is a complete configuration solution for Go applications including 12-Factor apps. It is designed to work within an application, and can handle all types of configuration needs and formats. It supports: setting defaults reading from JSON, TOML, YAML, HCL, envfile and Java properties config files live watching and re-reading of config files (optional) reading from environment variables reading from remote config systems (etcd or Consul), and watching changes reading from command line flags reading from buffer setting explicit values Viper can be thought of as a registry for all of your applications configuration needs.
func CustomErrorHandler ¶
CustomErrorHandler is the Custom ErrorHandler used by a new Middleware.
func CustomLimitReachedHandler ¶
CustomLimitReachedHandler is the Custom LimitReachedHandler used by a new Middleware.
func LoggerWithFormatter ¶
func LoggerWithFormatter() gin.HandlerFunc
LoggerWithFormatter instance a Logger middleware with the specified log format function.
Types ¶
This section is empty.