Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FaviconMiddlewareConfig ¶
type GinServerConfig ¶
type GinServerConfig struct {
ListenAddress string `json:"addr"`
Name string `json:"name"`
Versions []string `json:"versions"`
SupportStatic bool `json:"support_static"`
Config struct {
ReadTimeout time.Duration `json:"read_timeout"`
WriteTimeout time.Duration `json:"write_timeout"`
RequestMethods []string `json:"request_methods"`
} `json:"conf"`
Middlewares struct {
Order []string `json:"order"`
} `json:"middlewares"`
Static struct {
Prefix string `json:"prefix"`
Root string `json:"root"`
} `json:"static"`
Swagger SwaggerConfig `json:"swagger"`
}
type LoggerMiddlewareConfig ¶
type LoggerMiddlewareConfig struct {
Format string `json:"format"`
TimeFormat string `json:"time_format"`
TimeZone string `json:"time_zone"`
TimeInterval int `json:"time_interval"`
Output string `json:"output"`
}
LoggerMiddlewareConfig - defines the config for middleware.
type SwaggerConfig ¶ added in v0.3.1
type SwaggerConfig struct {
Enabled bool `json:"enabled"`
}
SwaggerConfig - defines the config for Swagger documentation.
Click to show internal directories.
Click to hide internal directories.