Documentation ¶
Index ¶
- func CustomWrapHandler(config *Config, h *webdav.Handler) gin.HandlerFunc
- func DeepLinking(deepLinking bool) func(c *Config)
- func DisablingCustomWrapHandler(config *Config, h *webdav.Handler, envName string) gin.HandlerFunc
- func DisablingWrapHandler(h *webdav.Handler, envName string, confs ...func(c *Config)) gin.HandlerFunc
- func Oauth2AppName(appName string) func(c *Config)
- func Oauth2ClientID(clientID string) func(c *Config)
- func SpecFileName(specFileName string) func(c *Config)
- func SwaggerBase(swaggerBase string) func(c *Config)
- func WrapHandler(h *webdav.Handler, confs ...func(c *Config)) gin.HandlerFunc
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomWrapHandler ¶ added in v1.2.1
func CustomWrapHandler(config *Config, h *webdav.Handler) gin.HandlerFunc
CustomWrapHandler wraps `http.Handler` into `gin.HandlerFunc`
func DeepLinking ¶ added in v1.2.1
DeepLinking set the swagger deeplinking configuration
func DisablingCustomWrapHandler ¶ added in v1.2.1
DisablingCustomWrapHandler turn handler off if specified environment variable passed
func DisablingWrapHandler ¶ added in v1.2.1
func DisablingWrapHandler(h *webdav.Handler, envName string, confs ...func(c *Config)) gin.HandlerFunc
DisablingWrapHandler turn handler off if specified environment variable passed
func Oauth2AppName ¶ added in v1.2.2
Oauth2AppName sets OAuth2 application name
func Oauth2ClientID ¶ added in v1.2.2
Oauth2ClientID sets OAuth2 client ID
func SpecFileName ¶ added in v1.2.1
SpecFileName sets name of API definition (normally swagger.json or swagger.yaml).
func SwaggerBase ¶ added in v1.2.1
SwaggerBase sets the subpath of swagger router. Default is `swagger/`.
func WrapHandler ¶
func WrapHandler(h *webdav.Handler, confs ...func(c *Config)) gin.HandlerFunc
WrapHandler wraps `http.Handler` into `gin.HandlerFunc`.
Types ¶
type Config ¶ added in v1.2.1
type Config struct { //The url pointing to API definition (normally swagger.json or swagger.yaml). Default is `doc.json`. SpecFileName string SwaggerBase string DeepLinking bool Oauth2ClientID string Oauth2AppName string }
Config stores ginSwagger configuration variables.
Click to show internal directories.
Click to hide internal directories.