Versions in this module Expand all Collapse all v0 v0.9.10 Nov 3, 2017 v0.9.9 Oct 18, 2017 Changes in this version + var RequestCount = prometheus.NewCounterVec(prometheus.CounterOpts{ ... }, []string{ ... }) + var RequestDuration = prometheus.NewHistogramVec(prometheus.HistogramOpts{ ... }, []string{ ... }) + func Fuzz(data []byte) int + func OnStartupMetrics() error + type Exchanger interface + Exchange func(ctx context.Context, addr string, state request.Request) (*dns.Msg, error) + OnShutdown func(*Proxy) error + OnStartup func(*Proxy) error + Protocol func() string + Transport func() string + type Options struct + ForceTCP bool + type Proxy struct + Next plugin.Handler + Trace plugin.Handler + Upstreams *[]Upstream + func NewLookup(hosts []string) Proxy + func NewLookupWithOption(hosts []string, opts Options) Proxy + func (p Proxy) Forward(state request.Request) (*dns.Msg, error) + func (p Proxy) Lookup(state request.Request, name string, typ uint16) (*dns.Msg, error) + func (p Proxy) Name() string + func (p Proxy) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) + type Upstream interface + Exchanger func() Exchanger + From func() string + IsAllowedDomain func(string) bool + Select func() *healthcheck.UpstreamHost + Stop func() error + func NewStaticUpstreams(c *caddyfile.Dispenser) ([]Upstream, error) Other modules containing this package gopkg.in/coredns/coredns.v1