api: add Near parameter to PQ's

pull/2157/head
Ryan Uber 2016-07-01 16:41:46 -07:00
parent 60c778248f
commit 72b43eba26
1 changed files with 5 additions and 0 deletions

View File

@ -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