LCOV - code coverage report
Current view: top level - libs/safekeeper_api/src - lib.rs (source / functions) Coverage Total Hit
Test: b9728233c33232dfae45024a493738ef141ccd5d.info Lines: 0.0 % 1 0
Test Date: 2025-01-10 20:41:15 Functions: 0.0 % 12 0

            Line data    Source code
       1              : #![deny(unsafe_code)]
       2              : #![deny(clippy::undocumented_unsafe_blocks)]
       3              : use const_format::formatcp;
       4              : use pq_proto::SystemId;
       5              : use serde::{Deserialize, Serialize};
       6              : 
       7              : /// Public API types
       8              : pub mod models;
       9              : 
      10              : /// Consensus logical timestamp. Note: it is a part of sk control file.
      11              : pub type Term = u64;
      12              : pub const INVALID_TERM: Term = 0;
      13              : 
      14              : /// Information about Postgres. Safekeeper gets it once and then verifies all
      15              : /// further connections from computes match. Note: it is a part of sk control
      16              : /// file.
      17            0 : #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
      18              : pub struct ServerInfo {
      19              :     /// Postgres server version
      20              :     pub pg_version: u32,
      21              :     pub system_id: SystemId,
      22              :     pub wal_seg_size: u32,
      23              : }
      24              : 
      25              : pub const DEFAULT_PG_LISTEN_PORT: u16 = 5454;
      26              : pub const DEFAULT_PG_LISTEN_ADDR: &str = formatcp!("127.0.0.1:{DEFAULT_PG_LISTEN_PORT}");
      27              : 
      28              : pub const DEFAULT_HTTP_LISTEN_PORT: u16 = 7676;
      29              : pub const DEFAULT_HTTP_LISTEN_ADDR: &str = formatcp!("127.0.0.1:{DEFAULT_HTTP_LISTEN_PORT}");
        

Generated by: LCOV version 2.1-beta