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 InstanceName(name string) func(*Config)
- func PersistAuthorization(persistAuthorization bool) func(c *Config)
- func RoutingWrapHandler(configFns ...func(c *Config)) routing.Handler
- func URL(url string) func(c *Config)
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var WrapHandler = RoutingWrapHandler()
WrapHandler wraps swaggerFiles.Handler and returns echo.HandlerFunc
Functions ¶
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 PersistAuthorization ¶
PersistAuthorization Persist authorization information over browser close/refresh. Defaults to false.
func RoutingWrapHandler ¶
FiberWrapHandler wraps `http.Handler` into `fiber.Handler`.
Types ¶
type Config ¶
type Config struct { // The url pointing to API definition (normally swagger.json or swagger.yaml). Default is `mockedSwag.json`. URL string InstanceName string DocExpansion string DomID string DeepLinking bool PersistAuthorization bool }
Config stores echoSwagger configuration variables.
Click to show internal directories.
Click to hide internal directories.