proxmox-backup/src/lib.rs
Dietmar Maurer e705b3057f rename cached_traffic_control.rs to traffic_control_cache.rs, improve dev docs
Keep things inside crate::traffic_control_cache (do not pollute root namespace).

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2022-02-14 13:45:44 +01:00

45 lines
825 B
Rust

//! See the different modules for documentation on their usage.
//!
//! The [backup](backup/index.html) module contains some detailed information
//! on the inner workings of the backup server regarding data storage.
use std::path::PathBuf;
use pbs_buildcfg::configdir;
use pbs_tools::cert::CertInfo;
#[macro_use]
pub mod tools;
#[macro_use]
pub mod server;
#[macro_use]
pub mod backup;
pub mod config;
pub mod api2;
pub mod auth_helpers;
pub mod auth;
pub mod tape;
pub mod acme;
pub mod client_helpers;
pub mod rrd_cache;
mod shared_rate_limiter;
pub use shared_rate_limiter::SharedRateLimiter;
pub mod traffic_control_cache;
/// Get the server's certificate info (from `proxy.pem`).
pub fn cert_info() -> Result<CertInfo, anyhow::Error> {
CertInfo::from_path(PathBuf::from(configdir!("/proxy.pem")))
}