Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultHost = "0.0.0.0" DefaultPort = "2015" DefaultRoot = "." // DefaultConfigFile is the name of the configuration file that is loaded // by default if no other file is specified. DefaultConfigFile = "Caddyfile" )
Variables ¶
View Source
var ( Root = DefaultRoot Host = DefaultHost Port = DefaultPort )
These three defaults are configurable through the command line
Functions ¶
func NewDefault ¶ added in v0.7.5
Types ¶
type Group ¶ added in v0.7.5
type SetupFunc ¶ added in v0.7.2
type SetupFunc func(c *setup.Controller) (middleware.Middleware, error)
A setup function takes a setup controller. Its return values may both be nil. If middleware is not nil, it will be chained into the HTTP handlers in the order specified in this package.
Click to show internal directories.
Click to hide internal directories.