Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigDefault = Config{ Next: nil, BasePath: "/", FilePath: "./swagger.json", Path: "docs", Title: "Fiber API documentation", CacheAge: 3600, }
ConfigDefault is the default config
Functions ¶
Types ¶
type Config ¶
type Config struct { // Next defines a function to skip this middleware when returned true. // // Optional. Default: nil Next func(c *fiber.Ctx) bool // BasePath for the UI path // // Optional. Default: / BasePath string // FilePath for the swagger.json or swagger.yaml file // // Optional. Default: ./swagger.json FilePath string // FileContent for the content of the swagger.json or swagger.yaml file. // If provided, FilePath will not be read. // // Optional. Default: nil FileContent []byte // Path combines with BasePath for the full UI path // // Optional. Default: docs Path string // Title for the documentation site // // Optional. Default: Fiber API documentation Title string // CacheAge defines the max-age for the Cache-Control header in seconds. // // Optional. Default: 3600 (1 hour) CacheAge int }
Config defines the config for middleware.
Click to show internal directories.
Click to hide internal directories.