Documentation ¶
Index ¶
- Variables
- func Enable(caddyfile string, player TemplateFunc)
- func GetInstance() *caddy.Instance
- func GetPathes() []string
- func RegisterPluginTemplate(fn TemplateFunc, pathes ...string) error
- func Restart() error
- func Start() error
- func StartWithFastRestart() error
- func Stop() error
- type Caddy
- type TemplateFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var (
FuncMap = template.FuncMap{
"urls": internalURLFromServices,
"serviceAddress": addressFromService,
}
)
Functions ¶
func GetInstance ¶
func RegisterPluginTemplate ¶
func RegisterPluginTemplate(fn TemplateFunc, pathes ...string) error
RegisterPluginTemplate adds a TemplateFunc to be called for each plugin
func StartWithFastRestart ¶ added in v1.4.1
func StartWithFastRestart() error
Types ¶
type Caddy ¶
type Caddy struct {
// contains filtered or unexported fields
}
Caddy contains the templates and functions for building a dynamic caddyfile
func (*Caddy) GetTemplate ¶
type TemplateFunc ¶
TemplateFunc is a function providing a stringer
func GetTemplates ¶
func GetTemplates() []TemplateFunc
Click to show internal directories.
Click to hide internal directories.