Versions in this module Expand all Collapse all v1 v1.2.0 Jul 17, 2026 v1.1.0 Jul 16, 2026 Changes in this version type Handler + Fall fall.F v1.0.0 Jul 16, 2026 Changes in this version + func RegisterSource(name string, factory SourceFactory) + func RegisteredSources() []string + type Handler struct + Next plugin.Handler + Store *Store + TTL uint32 + Zone string + func (h *Handler) Name() string + func (h *Handler) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) + type Instance struct + Address string + ID string + Port int + Priority int + Protocol string + Source string + Weight int + type Service struct + Instances map[string]*Instance + Name string + Namespace string + type Source interface + Name func() string + ParseConfig func(c *caddy.Controller) error + Run func(ctx context.Context, store *Store) error + type SourceFactory func() Source + func GetSource(name string) (SourceFactory, bool) + type Store struct + func NewStore() *Store + func (s *Store) Deregister(svcName, namespace, instanceID string) + func (s *Store) DeregisterBySource(source string) + func (s *Store) GetInstance(svcName, namespace, instanceID string) (*Instance, bool) + func (s *Store) GetInstances(svcName, namespace string) []*Instance + func (s *Store) GetService(svcName, namespace string) (*Service, bool) + func (s *Store) ListServices() []*Service + func (s *Store) Register(svcName, namespace string, inst *Instance) error