Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConsulResolver ¶
func NewConsulResolver(endpoint string, extraConfig *ConsulResolverConfig) (discovery.Resolver, error)
NewConsulResolver creates a consul based resolver.
Types ¶
type ConsulResolverConfig ¶
type ConsulResolverConfig struct { // Datacenter to use. If not provided, the default agent datacenter is used. Datacenter string // Token is used to provide a per-request ACL token // which overrides the agent's default token. ACLToken string // generate a TLSClientConfig that's useful for talking to Consul using TLS. TLSConfig *api.TLSConfig // HTTPAuth is used to authenticate http client with HTTP Basic Authentication HTTPAuth *api.HttpBasicAuth }
ConsulResolverConfig is used to configure the creation of a client
Click to show internal directories.
Click to hide internal directories.