Versions in this module Expand all Collapse all v0 v0.0.1 Jan 7, 2021 Changes in this version + type ActionInfo struct + Data string + Type ActionType + func ToActionInfo(s string) (ActionInfo, error) + type ActionType int + const CheckAll + const CheckCNAME + const CheckIP + const ReturnValue + const SendFixedIP4 + const SendNXDomain + const SendRefused + func (a ActionType) String() string + type Config struct + Exclude IPSet + Policy RuleSet + Service string + Views []View + func DefaultConfig() Config + func (cfg *Config) Load(c *caddy.Controller) error + func (cfg Config) Validate() error + type EventInfo struct + Level event.Level + Raise bool + func ToEventInfo(s string) (EventInfo, error) + type IPSet struct + CIDRs []*net.IPNet + IPs []net.IP + func (f *IPSet) Contains(ip net.IP) bool + func (f *IPSet) Empty() bool + type Plugin struct + Fall fall.F + Next plugin.Handler + func New(cfg Config) (*Plugin, error) + func (p *Plugin) RegisterMetrics(c *caddy.Controller) + func (p *Plugin) ServeDNS(ctx context.Context, writer dns.ResponseWriter, query *dns.Msg) (int, error) + func (p *Plugin) Shutdown() error + func (p *Plugin) Start() error + func (p Plugin) Health() bool + func (p Plugin) Name() string + type Rule struct + Action ActionInfo + Event EventInfo + Log bool + func ToRule(s string) (Rule, error) + func (r *Rule) Merge(s string) error + func (r Rule) Validate() error + type RuleSet struct + CNAME Rules + Domain Rules + IP Rules + OnError ActionInfo + func (r RuleSet) Validate() error + type Rules struct + Listed Rule + Merge bool + Unlisted Rule + type View struct + Include IPSet + Service string