INNER CODE UNIT · Rust

db_url

upvpn/upvpn-app · upvpn-config/src/lib.rs:107

    pub fn db_url(&self) -> String {
        format!("sqlite://{}/upvpn.db?mode=rwc", self.db_dir().display())
    }

    pub fn grpc_api_host_port(&self) -> &str {
        &self.grpc_api_host_port
    }

    pub fn rest_api_host_port(&self) -> &str {
        &self.rest_api_host_port
    }

    pub fn google_client_id(&self) -> Option<&str> {
        self.google_client_id.as_deref()
    }

    pub fn allowed_endpoint_ipv4(&self) -> &IpAddr {
        &self.allowed_endpoint_ipv4

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…