Struct sozu_command_lib::config::Config
[−]
[src]
pub struct Config { pub config_path: String, pub command_socket: String, pub command_buffer_size: usize, pub max_command_buffer_size: usize, pub channel_buffer_size: usize, pub saved_state: Option<String>, pub log_level: String, pub log_target: String, pub worker_count: u16, pub metrics: Option<MetricsConfig>, pub http: Option<ProxyConfig>, pub https: Option<ProxyConfig>, pub applications: HashMap<String, AppConfig>, pub handle_process_affinity: bool, }
Fields
config_path: String
command_socket: String
command_buffer_size: usize
max_command_buffer_size: usize
channel_buffer_size: usize
saved_state: Option<String>
log_level: String
log_target: String
worker_count: u16
metrics: Option<MetricsConfig>
http: Option<ProxyConfig>
https: Option<ProxyConfig>
applications: HashMap<String, AppConfig>
handle_process_affinity: bool
Methods
impl Config
[src]
fn load_from_path(path: &str) -> Result<Config>
[src]
fn generate_config_messages(&self) -> Vec<ConfigMessage>
[src]
fn command_socket_path(&self) -> String
[src]
fn saved_state_path(&self) -> Option<String>
[src]
fn load_file(path: &str) -> Result<String>
[src]
fn load_file_bytes(path: &str) -> Result<Vec<u8>>
[src]
Trait Implementations
impl Debug for Config
[src]
impl Clone for Config
[src]
fn clone(&self) -> Config
[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
impl PartialEq for Config
[src]
fn eq(&self, __arg_0: &Config) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Config) -> bool
[src]
This method tests for !=
.