Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Config struct { Port string `toml:"port"` Recovery struct{} Entrance struct { RequestBuffer int `toml:"request_buffer"` RequestTimeoutMillisecond int `toml:"request_timeout_millisecond"` MaxConcurrency int `toml:"max_concurrency"` } CORS struct { AllowAllOrigins bool `toml:"allow_all_origins"` MaxAge int `toml:"max_age"` OptionPassThrough bool `toml:"option_pass_through"` AllowedOrigins []string `toml:"allowed_origins"` AllowedMethods []string `toml:"allowed_methods"` AllowedHeaders []string `toml:"allowed_headers"` ExposedHeaders []string `toml:"exposed_headers"` } }
Functions ¶
func CORS ¶
func CORS() gin.HandlerFunc
func Entrance ¶
func Entrance() gin.HandlerFunc
func Recovery ¶
func Recovery() gin.HandlerFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.