Class ConsulOptions
Configuration options to use in creating a Consul client. See the documentation of the Consul client for more details
Inheritance
System.Object
ConsulOptions
Namespace: Steeltoe.Discovery.Consul
Assembly: Steeltoe.Discovery.Consul.dll
Syntax
public class ConsulOptions : object
Fields
| Edit this page View SourceCONSUL_CONFIGURATION_PREFIX
Declaration
public const string CONSUL_CONFIGURATION_PREFIX = null
Field Value
Type | Description |
---|---|
System.String |
Properties
| Edit this page View SourceDatacenter
Gets or sets the data center to use
Declaration
public string Datacenter { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Host
Gets or sets the host address of the Consul server, default localhost
Declaration
public string Host { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Password
Gets or sets password to use
Declaration
public string Password { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Port
Gets or sets the port number used for the Consul server, default 8500
Declaration
public int Port { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Scheme
Gets or sets the scheme used for the Consul server, default http
Declaration
public string Scheme { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Token
Gets or sets the access token to use
Declaration
public string Token { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Username
Gets or sets the user name to use
Declaration
public string Username { get; set; }
Property Value
Type | Description |
---|---|
System.String |
WaitTime
Gets or sets the wait time to use
Declaration
public string WaitTime { get; set; }
Property Value
Type | Description |
---|---|
System.String |