Documentation
¶
Index ¶
- Variables
- func DeepLinking(deepLinking bool) func(c *Config)
- func DocExpansion(docExpansion string) func(c *Config)
- func DomID(domID string) func(c *Config)
- func EchoWrapHandler(configFns ...func(c *Config)) echo.HandlerFunc
- func InstanceName(instanceName string) func(c *Config)
- func PersistAuthorization(persistAuthorization bool) func(c *Config)
- func URL(url string) func(c *Config)
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var WrapHandler = EchoWrapHandler()
WrapHandler wraps swaggerFiles.Handler and returns echo.HandlerFunc
Functions ¶
func DocExpansion ¶
DocExpansion list, full, none.
func EchoWrapHandler ¶
func EchoWrapHandler(configFns ...func(c *Config)) echo.HandlerFunc
EchoWrapHandler wraps `http.Handler` into `echo.HandlerFunc`.
func InstanceName ¶
InstanceName specified swag instance name
func PersistAuthorization ¶
If set to true, it persists authorization data and it would not be lost on browser close/refresh Defaults to false
Types ¶
type Config ¶
type Config struct { // The url pointing to API definition (normally swagger.json or swagger.yaml). Default is `mockedSwag.json`. URL string DeepLinking bool DocExpansion string DomID string InstanceName string PersistAuthorization bool URIPrefix string }
Config stores echoSwagger configuration variables.
Click to show internal directories.
Click to hide internal directories.