mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-26 10:26:30 +00:00
replica pool & banlist
This commit is contained in:
24
src/config.rs
Normal file
24
src/config.rs
Normal file
@@ -0,0 +1,24 @@
|
||||
#[derive(Clone, PartialEq, Hash, std::cmp::Eq)]
|
||||
pub struct Address {
|
||||
pub host: String,
|
||||
pub port: String,
|
||||
}
|
||||
|
||||
#[derive(Clone, PartialEq, Hash, std::cmp::Eq)]
|
||||
pub struct User {
|
||||
pub name: String,
|
||||
pub password: String,
|
||||
}
|
||||
|
||||
// #[derive(Clone)]
|
||||
// pub struct Config {
|
||||
// pools: HashMap<String, Pool<ServerPool>>,
|
||||
// }
|
||||
|
||||
// impl Config {
|
||||
// pub fn new() -> Config {
|
||||
// Config {
|
||||
// pools: HashMap::new(),
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
Reference in New Issue
Block a user