replica pool & banlist

This commit is contained in:
Lev Kokotov
2022-02-05 10:02:13 -08:00
parent 17b690f759
commit a6574acbc3
7 changed files with 246 additions and 33 deletions

24
src/config.rs Normal file
View 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(),
// }
// }
// }