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 A/AAAA records.
ReadonlyportPort every resolved address is reached on.
Mandatory in this mode and absent from the 'srv' arm: DNS address
records carry no port, and defaulting to 80 would silently point traffic
at the wrong place.
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 in address mode —A/AAAArecords carry no port.