Struct sozu_command_lib::state::ConfigState
[−]
[src]
pub struct ConfigState {
pub applications: HashMap<AppId, Application>,
pub backends: HashMap<AppId, Vec<Backend>>,
pub http_fronts: HashMap<AppId, Vec<HttpFront>>,
pub https_fronts: HashMap<AppId, Vec<HttpsFront>>,
pub tcp_fronts: HashMap<AppId, Vec<TcpFront>>,
pub certificates: HashMap<CertFingerprint, (CertificateAndKey, Vec<String>)>,
pub http_addresses: Vec<(String, u16)>,
pub https_addresses: Vec<(String, u16)>,
}Fields
applications: HashMap<AppId, Application>
backends: HashMap<AppId, Vec<Backend>>
http_fronts: HashMap<AppId, Vec<HttpFront>>
https_fronts: HashMap<AppId, Vec<HttpsFront>>
tcp_fronts: HashMap<AppId, Vec<TcpFront>>
certificates: HashMap<CertFingerprint, (CertificateAndKey, Vec<String>)>
http_addresses: Vec<(String, u16)>
https_addresses: Vec<(String, u16)>
Methods
impl ConfigState[src]
pub fn new() -> ConfigState[src]
pub fn add_http_address(&mut self, ip_address: String, port: u16)[src]
pub fn add_https_address(&mut self, ip_address: String, port: u16)[src]
pub fn handle_order(&mut self, order: &Order)[src]
pub fn generate_orders(&self) -> Vec<Order>[src]
pub fn diff(&self, other: &ConfigState) -> Vec<Order>[src]
pub fn hash_state(&self) -> BTreeMap<AppId, u64>[src]
pub fn application_state(&self, app_id: &str) -> QueryAnswerApplication[src]
Trait Implementations
impl Debug for ConfigState[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Default for ConfigState[src]
fn default() -> ConfigState[src]
Returns the "default value" for a type. Read more
impl Clone for ConfigState[src]
fn clone(&self) -> ConfigState[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 ConfigState[src]
fn eq(&self, __arg_0: &ConfigState) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ConfigState) -> bool[src]
This method tests for !=.