Documentation
¶
Index ¶
Constants ¶
View Source
const ( TypeFile = "file" TypeHTTP = "http" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Olaf ¶
type Olaf struct { // The config source type. Type string `json:"type,omitempty"` // The path to the config. // // Type: TypeFile => Path: filename // Type: TypeHTTP => Path: url Path string `json:"path,omitempty"` // Maximum time allowed for a complete connection and request. This // option is useful only if Type is TypeHTTP. Timeout caddy.Duration `json:"timeout,omitempty"` }
Olaf implements a handler that embeds Olaf's declarative configuration, which will be expanded later by a config adapter named `olaf`.
func (Olaf) CaddyModule ¶
func (Olaf) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (*Olaf) UnmarshalCaddyfile ¶
UnmarshalCaddyfile implements caddyfile.Unmarshaler. Syntax:
olaf <path>
Click to show internal directories.
Click to hide internal directories.