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 AccessLog ¶
type AccessLog struct {
Output string `yaml:"output"`
Format string `yaml:"format"`
Rotation Rotation
}
func (AccessLog) SetDefaults ¶ added in v0.1.0
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 ¶
func (Config) SetDefaults ¶ added in v0.1.0
type Log ¶
type Log struct {
Output string `yaml:"output"`
Prefix string `yaml:"prefix"`
Flags []string `yaml:"flags"`
Rotation Rotation
}
func (Log) SetDefaults ¶ added in v0.1.0
type Rotation ¶ added in v0.1.0
type Rotation struct {
MaxSize int `yaml:"maxSize"`
MaxBackups int `yaml:"maxBackups"`
MaxAge int `yaml:"maxAge"`
Compress bool `yaml:"compress"`
LocalTime bool `yaml:"localTime"`
}
func (Rotation) SetDefaults ¶ added in v0.1.0
type RoutesCache ¶
Click to show internal directories.
Click to hide internal directories.