Versions in this module Expand all Collapse all v3 v3.3.3 Aug 20, 2023 v3.3.2 Aug 7, 2023 v3.3.1 Jul 14, 2023 v3.3.0 Jul 10, 2023 v3.2.3 Jul 3, 2023 Changes in this version + var AlwaysWeighted = []uint16 + func NewZoneLabelStats(size int) *zoneLabelStats + type Label struct + Closest bool + Label string + MaxHosts int + Records map[uint16]Records + Test health.HealthTester + Ttl int + Weight map[uint16]int + func (l *Label) FirstRR(dnsType uint16) dns.RR + type LabelMatch struct + Label *Label + Type uint16 + type MuxManager struct + func NewMuxManager(path string, reg RegistrationAPI) (*MuxManager, error) + func (mm *MuxManager) Run() + func (mm *MuxManager) Zones() ZoneList + type NilReg struct + func (r *NilReg) Add(string, *Zone) + func (r *NilReg) Remove(string) + type Record struct + Loc *geo.Location + RR dns.RR + Test string + Weight int + type Records []*Record + func (s Records) Len() int + func (s Records) Swap(i, j int) + type RecordsByWeight struct + func (s RecordsByWeight) Less(i, j int) bool + type RegistrationAPI interface + Add func(string, *Zone) + Remove func(string) + type Zone struct + HasClosest bool + HealthStatus health.Status + LabelCount int + Labels labelmap + Logging *ZoneLogging + Metrics ZoneMetrics + Options ZoneOptions + Origin string + func NewZone(name string) *Zone + func (z *Zone) AddLabel(k string) *Label + func (z *Zone) Close() + func (z *Zone) FindLabels(s string, targets []string, qts []uint16) []LabelMatch + func (z *Zone) HealthRR(label string, baseLabel string) []dns.RR + func (z *Zone) SetLocations() + func (z *Zone) SetupMetrics(old *Zone) + func (z *Zone) SoaRR() dns.RR + func (zone *Zone) AddSOA() + func (zone *Zone) Picker(label *Label, qtype uint16, max int, location *geo.Location) Records + func (zone *Zone) ReadZoneFile(fileName string) (zerr error) + type ZoneList map[string]*Zone + type ZoneLogging struct + StatHat bool + StatHatAPI string + type ZoneMetrics struct + ClientStats *zoneLabelStats + LabelStats *zoneLabelStats + type ZoneOptions struct + Closest bool + Contact string + MaxHosts int + Serial int + Targeting targeting.TargetOptions + Ttl int Other modules containing this package github.com/abh/geodns