Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { // Root is a FileSystem that provides access // to a collection of files and directories. // Required. Default: nil Root http.FileSystem // ErrorHandler defines the response body when an error raised. // Optional. Defaul: Next for NotExistError and 403 for PermissionError and 500 for others ErrorHandler func(*fiber.Ctx, error) // Index file for serving a directory. // Optional. Default: "index.html" Index string // Enable directory browsing. // Optional. Default: false Browse bool }
Config holds the configuration for the middleware
Click to show internal directories.
Click to hide internal directories.