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 fiber.Handler
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 ¶
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.
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 fiberSwagger configuration variables.
Click to show internal directories.
Click to hide internal directories.