| 38 | } |
| 39 | |
| 40 | type mdnsRegistry struct { |
| 41 | opts *Options |
| 42 | services map[string][]*mdnsEntry |
| 43 | |
| 44 | // watchers |
| 45 | watchers map[string]*mdnsWatcher |
| 46 | |
| 47 | // listener |
| 48 | listener chan *mdns.ServiceEntry |
| 49 | // the mdns domain |
| 50 | domain string |
| 51 | |
| 52 | mtx sync.RWMutex |
| 53 | |
| 54 | sync.Mutex |
| 55 | } |
| 56 | |
| 57 | type mdnsWatcher struct { |
| 58 | wo WatchOptions |
nothing calls this directly
no outgoing calls
no test coverage detected