Documentation
¶
Index ¶
- func CustomWrapHandler(config *Config) fasthttp.RequestHandler
- func DeepLinking(deepLinking bool) func(c *Config)
- func DefaultModelsExpandDepth(depth int) func(c *Config)
- func DisablingCustomWrapHandler(config *Config, envName string) fasthttp.RequestHandler
- func DisablingWrapHandler(envName string) fasthttp.RequestHandler
- func DocExpansion(docExpansion string) func(c *Config)
- func InstanceName(name string) func(c *Config)
- func URL(url string) func(c *Config)
- func WrapHandler(confs ...func(c *Config)) fasthttp.RequestHandler
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomWrapHandler ¶
func CustomWrapHandler(config *Config) fasthttp.RequestHandler
CustomWrapHandler wraps `http.Handler` into `gin.HandlerFunc`
func DeepLinking ¶
DeepLinking set the swagger deeplinking configuration
func DefaultModelsExpandDepth ¶
DefaultModelsExpandDepth set the default expansion depth for models (set to -1 completely hide the models).
func DisablingCustomWrapHandler ¶
func DisablingCustomWrapHandler(config *Config, envName string) fasthttp.RequestHandler
DisablingCustomWrapHandler turn handler off if specified environment variable passed
func DisablingWrapHandler ¶
func DisablingWrapHandler(envName string) fasthttp.RequestHandler
DisablingWrapHandler turn handler off if specified environment variable passed
func DocExpansion ¶
DocExpansion list, full, none.
func InstanceName ¶
InstanceName set the instance name that was used to generate the swagger documents. Defaults to swag.Name ("swagger").
func WrapHandler ¶
func WrapHandler(confs ...func(c *Config)) fasthttp.RequestHandler
WrapHandler wraps `http.Handler` into `gin.HandlerFunc`.
Types ¶
type Config ¶
type Config struct { //The url pointing to API definition (normally swagger.json or swagger.yaml). Default is `doc.json`. URL string DeepLinking bool DocExpansion string DefaultModelsExpandDepth int InstanceName string }
Config stores ginSwagger configuration variables.
func (Config) ToSwaggerConfig ¶
func (c Config) ToSwaggerConfig() swaggerConfig
Convert the config to a swagger one in order to fill unexposed template values.
Directories
¶
Path | Synopsis |
---|---|
example
|
|
basic/docs
Package docs GENERATED BY THE COMMAND ABOVE; DO NOT EDIT This file was generated by swaggo/swag
|
Package docs GENERATED BY THE COMMAND ABOVE; DO NOT EDIT This file was generated by swaggo/swag |