Versions in this module Expand all Collapse all v0 v0.6.0 Dec 4, 2020 Changes in this version + type Diff struct + Add map[addr.HostSVC][]net.IP + Remove map[addr.HostSVC][]net.IP + func ComputeDiff(prev, next map[addr.HostSVC][]*net.UDPAddr) Diff + type Discoverer interface + Discover func(ctx context.Context, svc addr.HostSVC) ([]*net.UDPAddr, error) + Discoverable func(svc addr.HostSVC) bool + type DiscovererMap map[addr.HostSVC]interface + func (m DiscovererMap) Discover(ctx context.Context, svc addr.HostSVC) ([]*net.UDPAddr, error) + func (m DiscovererMap) Discoverable(svc addr.HostSVC) bool + type StaticDiscoverer struct + Addrs []*net.UDPAddr + func (s StaticDiscoverer) Discover(_ context.Context, _ addr.HostSVC) ([]*net.UDPAddr, error) + type Watcher struct + Discoverer Discoverer + Topology topology.Topology + func (w *Watcher) Discover(ctx context.Context) (Diff, error)