ReadonlyaddressBase URL of the Consul agent, e.g. http://127.0.0.1:8500.
Optional ReadonlycacheMilliseconds a resolved instance list is served from cache.
0 disables caching so every resolve hits the backend. A watched
service invalidates its own entry on every change, so this is a safety net
rather than the primary freshness mechanism.
Optional ReadonlydatacenterDatacenter, sent as ?dc=.
Optional ReadonlyejectionOutlier-ejection tuning, or false to disable ejection entirely.
Optional ReadonlyhttpOverrides the default fetch-backed HTTP seam.
ReadonlyproviderDiscriminant.
Optional ReadonlysecureWhether resolved instances speak TLS — Consul carries no scheme.
Optional ReadonlyselfAdvertise this instance to the backend (Consul only).
Optional ReadonlystrategyDefault selection strategy; PickOptions.strategy overrides it per call.
Optional ReadonlytokenACL token, sent as X-Consul-Token.
Optional ReadonlywaitBlocking-query wait, in seconds. Default 30, clamped to Consul's
documented maximum of 600.
The
'consul'arm.Since
0.2.0