From 72b43eba2668dd83341962228038e6cf15ea9613 Mon Sep 17 00:00:00 2001 From: Ryan Uber Date: Fri, 1 Jul 2016 16:41:46 -0700 Subject: [PATCH] api: add Near parameter to PQ's --- api/prepared_query.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/prepared_query.go b/api/prepared_query.go index c8141887c4..ddc3097a79 100644 --- a/api/prepared_query.go +++ b/api/prepared_query.go @@ -25,6 +25,11 @@ type ServiceQuery struct { // Service is the service to query. Service string + // Near allows baking in the name of a node to automatically distance- + // sort from. The magic "_agent" value is supported, which sorts near + // the agent which initiated the request by default. + Near string + // Failover controls what we do if there are no healthy nodes in the // local datacenter. Failover QueryDatacenterOptions