restructuring src dir

This commit is contained in:
Jun Kurihara 2022-07-27 20:33:37 +09:00
commit b56bf54318
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
12 changed files with 146 additions and 232 deletions

View file

@ -6,7 +6,6 @@ use tikv_jemallocator::Jemalloc;
static GLOBAL: Jemalloc = Jemalloc;
mod backend;
mod backend_opt;
mod config;
mod constants;
mod error;
@ -17,7 +16,7 @@ mod proxy;
mod utils;
use crate::{
backend::{Backend, Backends, ServerNameLC},
backend::{Backend, Backends, ServerNameExp},
config::parse_opts,
constants::*,
error::*,
@ -73,7 +72,7 @@ fn main() {
runtime_handle: runtime.handle().clone(),
backends: Backends {
default_server_name: None,
apps: HashMap::<ServerNameLC, Backend>::default(),
apps: HashMap::<ServerNameExp, Backend>::default(),
},
sni_consistency: true,