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 Oauth2DefaultClientID(oauth2DefaultClientID string) func(*Config)
- func PersistAuthorization(persistAuthorization bool) func(*Config)
- func SetDarkMode(isDarkMode 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 ¶
func CustomWrapHandler(config *Config, handler *webdav.Handler) gin.HandlerFunc
CustomWrapHandler wraps `http.Handler` into `gin.HandlerFunc`.
func DeepLinking ¶
DeepLinking set the swagger deep linking configuration.
func DefaultModelsExpandDepth ¶
DefaultModelsExpandDepth set the default expansion depth for models (set to -1 completely hide the models).
func DisablingCustomWrapHandler ¶
func DisablingCustomWrapHandler(config *Config, handler *webdav.Handler, envName string) gin.HandlerFunc
DisablingCustomWrapHandler turn handler off if specified environment variable passed.
func DisablingWrapHandler ¶
func DisablingWrapHandler(handler *webdav.Handler, envName string) gin.HandlerFunc
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 Oauth2DefaultClientID ¶
Oauth2DefaultClientID set the default client ID used for OAuth2
func PersistAuthorization ¶
PersistAuthorization Persist authorization information over browser close/refresh. Defaults to false.
func SetDarkMode ¶
Dark Mode for the Swagger Defaults to false
func WrapHandler ¶
func WrapHandler(handler *webdav.Handler, options ...func(*Config)) gin.HandlerFunc
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 DocExpansion string InstanceName string Title string DefaultModelsExpandDepth int DeepLinking bool PersistAuthorization bool Oauth2DefaultClientID string IsDarkMode 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 |
darkMode/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 |