Documentation ¶
Index ¶
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
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.