interface ConsulProviderOptions

Constructor options.

Properties

readonly
address: string

Base URL of the Consul agent.

readonly
optional
token: string

ACL token, sent as X-Consul-Token.

readonly
optional
datacenter: string

Datacenter, sent as ?dc=.

readonly
waitSeconds: number

Blocking-query wait, in seconds.

readonly
optional
secure: boolean

Whether resolved instances speak TLS.

Usage

import { type ConsulProviderOptions } from "service-discovery-plugin/src/index.ts";