rockraft 0.1.6

A strong consistency KV service library base on Raft and Rocksdb
Documentation
1
2
3
4
5
6
7
8
9
10
11
#[derive(Clone, Debug, Default)]
pub struct RpcClientTlsConfig {
  pub rpc_tls_server_root_ca_cert: String,
  pub domain_name: String,
}

impl RpcClientTlsConfig {
  pub fn enabled(&self) -> bool {
    !self.rpc_tls_server_root_ca_cert.is_empty() && !self.domain_name.is_empty()
  }
}