Struct cotoxy::ConsulSettings
[−]
[src]
pub struct ConsulSettings { /* fields omitted */ }
Settings for Consul.
Methods
impl ConsulSettings
[src]
const DEFAULT_CONSUL_ADDR: &'static str
DEFAULT_CONSUL_ADDR: &'static str = "127.0.0.1:8500"
The default consul agent address.
fn new(service: &str) -> Self
[src]
Makes a new ConsulSettings
instance.
fn consul_addr(&mut self, addr: SocketAddr) -> &mut Self
[src]
Sets the address of the consul agent used by ProxyServer
.
The default value is ConsulSettings::DEFAULT_CONSUL_ADDR
.
fn dc(&mut self, dc: &str) -> &mut Self
[src]
Sets the value of the dc
query parameter of List Nodes for Service API.
fn tag(&mut self, tag: &str) -> &mut Self
[src]
Sets the value of the tag
query parameter of List Nodes for Service API.
fn near(&mut self, near: &str) -> &mut Self
[src]
Sets the value of the near
query parameter of List Nodes for Service API.
fn add_node_meta(&mut self, key: &str, value: &str) -> &mut Self
[src]
Adds an entry for the node-meta
query parameter of List Nodes for Service API.
Trait Implementations
impl Debug for ConsulSettings
[src]
impl Clone for ConsulSettings
[src]
fn clone(&self) -> ConsulSettings
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more