Documentation
¶
Index ¶
- func CustomWrapHandler(config *Config, handler *webdav.Handler) gin.HandlerFunc
- func DeepLinking(deepLinking bool) func(*Config)
- func DefaultModelsExpandDepth(depth int) func(*Config)
- func DisablingCustomWrapHandler(config *Config, handler *webdav.Handler, envName string) gin.HandlerFunc
- func DisablingWrapHandler(handler *webdav.Handler, envName string) gin.HandlerFunc
- func DocExpansion(docExpansion string) func(*Config)
- func InstanceName(name string) func(*Config)
- func PersistAuthorization(persistAuthorization bool) func(*Config)
- func URL(url string) func(*Config)
- func WrapHandler(handler *webdav.Handler, options ...func(*Config)) gin.HandlerFunc
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomWrapHandler ¶ added in v1.4.4
func CustomWrapHandler(config *Config, handler *webdav.Handler) gin.HandlerFunc
CustomWrapHandler wraps `http.Handler` into `gin.HandlerFunc`.
func DeepLinking ¶ added in v1.4.4
DeepLinking set the swagger deep linking configuration.
func DefaultModelsExpandDepth ¶ added in v1.4.4
DefaultModelsExpandDepth set the default expansion depth for models (set to -1 completely hide the models).
func DisablingCustomWrapHandler ¶ added in v1.4.4
func DisablingCustomWrapHandler(config *Config, handler *webdav.Handler, envName string) gin.HandlerFunc
DisablingCustomWrapHandler turn handler off if specified environment variable passed.
func DisablingWrapHandler ¶ added in v1.4.4
func DisablingWrapHandler(handler *webdav.Handler, envName string) gin.HandlerFunc
DisablingWrapHandler turn handler off if specified environment variable passed.
func DocExpansion ¶ added in v1.4.4
DocExpansion list, full, none.
func InstanceName ¶ added in v1.4.4
InstanceName set the instance name that was used to generate the swagger documents Defaults to swag.Name ("swagger").
func PersistAuthorization ¶ added in v1.4.4
PersistAuthorization Persist authorization information over browser close/refresh. Defaults to false.
func URL ¶ added in v1.4.4
URL presents the url pointing to API definition (normally swagger.json or swagger.yaml).
func WrapHandler ¶
func WrapHandler(handler *webdav.Handler, options ...func(*Config)) gin.HandlerFunc
WrapHandler wraps `http.Handler` into `gin.HandlerFunc`.
Types ¶
type Config ¶ added in v1.4.4
type Config struct { // The url pointing to API definition (normally swagger.json or swagger.yaml). Default is `doc.json`. URL string DocExpansion string InstanceName string Title string URLFunc func(ctx *gin.Context) string DefaultModelsExpandDepth int DeepLinking bool PersistAuthorization bool }
Config stores ginSwagger configuration variables.
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 |
gzipped/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 |
multiple/docs
Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag
|
Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag |