Struct sozu_command_lib::config::TcpClusterConfig
source · pub struct TcpClusterConfig {
pub cluster_id: String,
pub frontends: Vec<TcpFrontendConfig>,
pub backends: Vec<BackendConfig>,
pub proxy_protocol: Option<ProxyProtocolConfig>,
pub load_balancing: LoadBalancingAlgorithms,
pub load_metric: Option<LoadMetric>,
}
Fields§
§cluster_id: String
§frontends: Vec<TcpFrontendConfig>
§backends: Vec<BackendConfig>
§proxy_protocol: Option<ProxyProtocolConfig>
§load_balancing: LoadBalancingAlgorithms
§load_metric: Option<LoadMetric>
Implementations§
source§impl TcpClusterConfig
impl TcpClusterConfig
pub fn generate_orders(&self) -> Vec<ProxyRequestOrder>
Trait Implementations§
source§impl Clone for TcpClusterConfig
impl Clone for TcpClusterConfig
source§fn clone(&self) -> TcpClusterConfig
fn clone(&self) -> TcpClusterConfig
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 TcpClusterConfig
impl Debug for TcpClusterConfig
source§impl<'de> Deserialize<'de> for TcpClusterConfig
impl<'de> Deserialize<'de> for TcpClusterConfig
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