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 FiberWrapHandler(configFns ...func(c *Config)) fiber.Handler
- func InstanceName(name string) func(*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 = FiberWrapHandler()
WrapHandler wraps swaggerFiles.Handler and returns echo.HandlerFunc
Functions ¶
func DocExpansion ¶
DocExpansion list, full, none.
func FiberWrapHandler ¶
func FiberWrapHandler(configFns ...func(c *Config)) fiber.Handler
FiberWrapHandler wraps `http.Handler` into `fiber.Handler`.
func InstanceName ¶ added in v1.2.1
InstanceName set the instance name that was used to generate the swagger documents Defaults to swag.Name ("swagger").
func PersistAuthorization ¶ added in v1.2.0
PersistAuthorization Persist authorization information over 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 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.