Documentation
¶
Index ¶
Constants ¶
View Source
const ID = "static"
ID contains default service name.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Enables StaticFile service.
Enable bool
// Dir contains name of directory to control access to.
Dir string
// Forbid specifies list of file extensions which are forbidden for access.
// Example: .php, .exe, .bat, .htaccess and etc.
Forbid []string
}
Config describes file location and controls access to them.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service serves static files. Potentially convert into middleware?
Click to show internal directories.
Click to hide internal directories.