code: func (d *Discovery) shouldWatchFromName(name string) bool {
  	// If there's no fixed set of watched services, we watch everything.
  	if len(d.watchedServices) == 0 {
  		return true
  	}
  
  	for _, sn := range d.watchedServices {
  		if sn == name {
  			return true
  		}
  	}
  	return false
  }
docs: // shouldWatch returns whether the service of the given name should be watched based on its name.