mirror of https://github.com/hashicorp/consul
api: add Near parameter to PQ's
parent
60c778248f
commit
72b43eba26
|
@ -25,6 +25,11 @@ type ServiceQuery struct {
|
||||||
// Service is the service to query.
|
// Service is the service to query.
|
||||||
Service string
|
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
|
// Failover controls what we do if there are no healthy nodes in the
|
||||||
// local datacenter.
|
// local datacenter.
|
||||||
Failover QueryDatacenterOptions
|
Failover QueryDatacenterOptions
|
||||||
|
|
Loading…
Reference in New Issue