Struct sozu_command_lib::config::FileClusterConfig
source · pub struct FileClusterConfig {
pub frontends: Vec<FileClusterFrontendConfig>,
pub backends: Vec<BackendConfig>,
pub protocol: FileClusterProtocolConfig,
pub sticky_session: Option<bool>,
pub https_redirect: Option<bool>,
pub send_proxy: Option<bool>,
pub load_balancing: LoadBalancingAlgorithms,
pub answer_503: Option<String>,
pub load_metric: Option<LoadMetric>,
}
Fields§
§frontends: Vec<FileClusterFrontendConfig>
§backends: Vec<BackendConfig>
§protocol: FileClusterProtocolConfig
§sticky_session: Option<bool>
§https_redirect: Option<bool>
§send_proxy: Option<bool>
§load_balancing: LoadBalancingAlgorithms
§answer_503: Option<String>
§load_metric: Option<LoadMetric>
Implementations§
source§impl FileClusterConfig
impl FileClusterConfig
pub fn to_cluster_config(
self,
cluster_id: &str,
expect_proxy: &HashSet<SocketAddr>
) -> Result<ClusterConfig>
Trait Implementations§
source§impl Clone for FileClusterConfig
impl Clone for FileClusterConfig
source§fn clone(&self) -> FileClusterConfig
fn clone(&self) -> FileClusterConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FileClusterConfig
impl Debug for FileClusterConfig
source§impl<'de> Deserialize<'de> for FileClusterConfig
impl<'de> Deserialize<'de> for FileClusterConfig
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