mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-13 16:32:56 +00:00
Move ReceiveWalConn into its own file. Shuffle constants around so they are close to the protocol they're associated with, or move them into postgres_ffi if they seem to be global constants.
26 lines
522 B
Rust
26 lines
522 B
Rust
//
|
|
use std::net::SocketAddr;
|
|
use std::path::PathBuf;
|
|
use std::time::Duration;
|
|
|
|
pub mod pq_protocol;
|
|
pub mod receive_wal;
|
|
pub mod replication;
|
|
pub mod s3_offload;
|
|
pub mod send_wal;
|
|
pub mod timeline;
|
|
pub mod wal_service;
|
|
|
|
use crate::pq_protocol::SystemId;
|
|
|
|
#[derive(Debug, Clone)]
|
|
pub struct WalAcceptorConf {
|
|
pub data_dir: PathBuf,
|
|
pub systemid: SystemId,
|
|
pub daemonize: bool,
|
|
pub no_sync: bool,
|
|
pub listen_addr: SocketAddr,
|
|
pub pageserver_addr: Option<SocketAddr>,
|
|
pub ttl: Option<Duration>,
|
|
}
|