mirror of
https://github.com/status-im/consul.git
synced 2025-01-22 11:40:06 +00:00
api: add Near parameter to PQ's
This commit is contained in:
parent
60c778248f
commit
72b43eba26
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user