func (data *consulData) getServiceEntries(health *api.Health) (entries []*api.ServiceEntry, err error) { options := api.QueryOptions{} if data.dc != "" { options.Datacenter = data.dc } entries, _, err = health.Service(data.serviceName, data.serviceTag, true, &options) return entries, err }