Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowStale ¶ added in v0.15.0
AllowStale sets whether any Consul server (non-leader) can service a read. This allows for lower latency and higher throughput at the cost of potentially stale data. Works similar to Consul DNS Config option [1]. Defaults to true.
[1] https://www.consul.io/docs/agent/options.html#allow_stale
func Connect ¶ added in v0.11.0
Connect specifies services should be registered as Consul Connect services
func QueryOptions ¶ added in v0.15.0
func QueryOptions(q *consul.QueryOptions) registry.Option
QueryOptions specifies the QueryOptions to be used when calling Consul. See `Consul API` for more information [1].
[1] https://godoc.org/github.com/hashicorp/consul/api#QueryOptions
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
registry
module
|
|
consul
Module
|
|
consul/transport/memory
Module
|
|
registry/consul
Module
|
|
registry/gossip
Module
|
|
registry/gossip/proto
Module
|
|
registry/mdns
Module
|
|
registry/memory
Module
|
|
selector
module
|
|
client/mock
Module
|
|
codec/jsonrpc
Module
|
Click to show internal directories.
Click to hide internal directories.