Versions in this module Expand all Collapse all v1 v1.19.1 Oct 25, 2022 Changes in this version + const Failure + const Success + var DnsTotal = prometheus.NewGauge(prometheus.GaugeOpts{ ... }) + var RequestCount = prometheus.NewCounterVec(prometheus.CounterOpts{ ... }, []string{ ... }) + var RequestLatency = prometheus.NewHistogramVec(prometheus.HistogramOpts{ ... }, []string{ ... }) + type BcsCustom struct + Ctx context.Context + EtcdCli *etcdcv3.Client + EtcdPlugin *etcd.Etcd + FallThrough bool + Listen string + Next plugin.Handler + RootPrefix string + SvrTLS TLS + Upstream upstream.Upstream + Zones []string + func (bc *BcsCustom) IsNameError(err error) bool + func (bc *BcsCustom) Lookup(state request.Request, name string, typ uint16) (*dns.Msg, error) + func (bc *BcsCustom) MinTTL(state request.Request) uint32 + func (bc *BcsCustom) Name() string + func (bc *BcsCustom) Records(state request.Request, exact bool) ([]msg.Service, error) + func (bc *BcsCustom) Reverse(state request.Request, exact bool, opt plugin.Options) ([]msg.Service, error) + func (bc *BcsCustom) Serial(state request.Request) uint32 + func (bc *BcsCustom) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) + func (bc *BcsCustom) Services(state request.Request, exact bool, opt plugin.Options) (services []msg.Service, err error) + func (bc *BcsCustom) Transfer(ctx context.Context, state request.Request) (int, error) + type DNS struct + DomainName string + Messages []DNSMessage + type DNSMessage struct + Alias string + Group string + Host string + Mail bool + Port int + Priority int + TTL uint32 + TargetStrip int + Text string + Weight int + type TLS struct + CaFile string + CertFile string + KeyFile string