Struct sozu_command_lib::config::Config
source · pub struct Config {Show 29 fields
pub config_path: String,
pub command_socket: String,
pub command_buffer_size: usize,
pub max_command_buffer_size: usize,
pub max_connections: usize,
pub min_buffers: usize,
pub max_buffers: usize,
pub buffer_size: usize,
pub saved_state: Option<String>,
pub automatic_state_save: bool,
pub log_level: String,
pub log_target: String,
pub log_access_target: Option<String>,
pub worker_count: u16,
pub worker_automatic_restart: bool,
pub metrics: Option<MetricsConfig>,
pub http_listeners: Vec<HttpListener>,
pub https_listeners: Vec<HttpsListener>,
pub tcp_listeners: Vec<TcpListener>,
pub clusters: HashMap<String, ClusterConfig>,
pub handle_process_affinity: bool,
pub ctl_command_timeout: u64,
pub pid_file_path: Option<String>,
pub activate_listeners: bool,
pub front_timeout: u32,
pub back_timeout: u32,
pub connect_timeout: u32,
pub zombie_check_interval: u32,
pub accept_queue_timeout: u32,
}
Fields§
§config_path: String
§command_socket: String
§command_buffer_size: usize
§max_command_buffer_size: usize
§max_connections: usize
§min_buffers: usize
§max_buffers: usize
§buffer_size: usize
§saved_state: Option<String>
§automatic_state_save: bool
§log_level: String
§log_target: String
§log_access_target: Option<String>
§worker_count: u16
§worker_automatic_restart: bool
§metrics: Option<MetricsConfig>
§http_listeners: Vec<HttpListener>
§https_listeners: Vec<HttpsListener>
§tcp_listeners: Vec<TcpListener>
§clusters: HashMap<String, ClusterConfig>
§handle_process_affinity: bool
§ctl_command_timeout: u64
§pid_file_path: Option<String>
§activate_listeners: bool
§front_timeout: u32
§back_timeout: u32
§connect_timeout: u32
§zombie_check_interval: u32
§accept_queue_timeout: u32
Implementations§
source§impl Config
impl Config
pub fn load_from_path(path: &str) -> Result<Config>
pub fn generate_config_messages(&self) -> Vec<CommandRequest>
pub fn command_socket_path(&self) -> Result<String>
pub fn load_file(path: &str) -> Result<String>
pub fn load_file_bytes(path: &str) -> Result<Vec<u8>>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more