Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultListen = ":8800" DefaultServerName = "fasthttpd" MatchPrefix = "prefix" MatchEqual = "equal" MatchRegexp = "regexp" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Host string `yaml:"host"`
Listen string `yaml:"listen"`
Root string `yaml:"root"`
Server tree.Map `yaml:"server"`
Log Log `yaml:"log"`
AccessLog AccessLog `yaml:"accessLog"`
ErrorPages map[string]string `yaml:"errorPages"`
Filters map[string]tree.Map `yaml:"filters"`
Handlers map[string]tree.Map `yaml:"handlers"`
Routes []Route `yaml:"routes"`
RoutesCache RoutesCache `yaml:"routesCache"`
}
Config represents a configuration root of fasthttpd.
func UnmarshalYAML ¶
func UnmarshalYAMLPath ¶
type RoutesCache ¶
Click to show internal directories.
Click to hide internal directories.