Merge pull request #2157 from hashicorp/f-near-api

Adds near param to API client
This commit is contained in:
James Phillips 2016-07-01 16:53:38 -07:00 committed by GitHub
commit 1d84d10c65
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