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 Readonlydomain{service} is replaced with the requested name.
Optional ReadonlyejectionOutlier-ejection tuning, or false to disable ejection entirely.
ReadonlymodeQuery SRV records and honor RFC 2782 priority tiers.
ReadonlyproviderDiscriminant.
Optional ReadonlysecureWhether resolved instances speak TLS.
Optional ReadonlyselfAdvertise this instance to the backend (Consul only).
Optional ReadonlystrategyDefault selection strategy; PickOptions.strategy overrides it per call.
Optional ReadonlywatchMilliseconds between watch() polls — DNS has no push channel.
The
'dns'arm inSRVmode — records carry their own ports.