Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TemplateConfig ¶
type TemplateConfig struct { Foo string `cf:"foo" check:"nonempty"` Bar string `cf:"bar" default:"Hello World"` }
func ParseConfig ¶
func ParseConfig(c *caddy.Controller) (*TemplateConfig, error)
type TemplatePlugin ¶
type TemplatePlugin struct { Next plugin.Handler Cfg TemplateConfig }
func CreatePlugin ¶
func CreatePlugin(c *caddy.Controller) (*TemplatePlugin, error)
func (TemplatePlugin) Name ¶
func (p TemplatePlugin) Name() string
func (TemplatePlugin) ServeDNS ¶
func (p TemplatePlugin) ServeDNS(ctx context.Context, writer dns.ResponseWriter, msg *dns.Msg) (int, error)
func (TemplatePlugin) ServeDnsRequest ¶
Click to show internal directories.
Click to hide internal directories.