Class ConsulOptions
- Namespace
- Steeltoe.Discovery.Consul.Configuration
- Assembly
- Steeltoe.Discovery.Consul.dll
Configuration options to use in creating a Consul client. See the documentation of the Consul client for more details.
public sealed class ConsulOptions
- Inheritance
-
ConsulOptions
- Inherited Members
Properties
Datacenter
Gets or sets the datacenter name passed in each request to the server.
public string? Datacenter { get; set; }
Property Value
Host
Gets or sets the hostname or IP address of the Consul server. Default value: localhost.
public string? Host { get; set; }
Property Value
Password
Gets or sets password for HTTP authentication.
public string? Password { get; set; }
Property Value
Port
Gets or sets the port number the Consul server is listening on. Default value: 8500.
public int Port { get; set; }
Property Value
Scheme
Gets or sets the scheme to connect with the Consul server ("http" or "https"). Default value: http.
public string? Scheme { get; set; }
Property Value
Token
Gets or sets the authentication token passed in each request to the server.
public string? Token { get; set; }
Property Value
Username
Gets or sets the username for HTTP authentication.
public string? Username { get; set; }
Property Value
WaitTime
Gets or sets the maximum duration for a blocking request.
public string? WaitTime { get; set; }