aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-04-23 17:05:46 +0000
committerAlex Auvolat <alex@adnab.me>2020-04-23 17:05:46 +0000
commitc9c6b0dbd41e20d19b91c6615c46da6f45925bca (patch)
treebd299a3c5fbbd567250f6314462bc0998555589a /src/main.rs
parent01a8acdeecfcacafb61809f9e135709148e842ce (diff)
downloadgarage-c9c6b0dbd41e20d19b91c6615c46da6f45925bca.tar.gz
garage-c9c6b0dbd41e20d19b91c6615c46da6f45925bca.zip
Reorganize code
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs28
1 files changed, 9 insertions, 19 deletions
diff --git a/src/main.rs b/src/main.rs
index 0b41805b..c693b12c 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -3,29 +3,18 @@
#[macro_use]
extern crate log;
+mod background;
+mod config;
mod data;
mod error;
-mod background;
-mod membership;
+mod api;
+mod rpc;
+mod store;
mod table;
-mod table_fullcopy;
-mod table_sharded;
-mod table_sync;
-
-mod block;
-mod block_ref_table;
-mod bucket_table;
-mod object_table;
-mod version_table;
mod admin_rpc;
-mod api_server;
-mod http_util;
-mod rpc_client;
-mod rpc_server;
mod server;
-mod tls_util;
use std::collections::HashSet;
use std::net::SocketAddr;
@@ -36,11 +25,12 @@ use std::time::Duration;
use serde::{Deserialize, Serialize};
use structopt::StructOpt;
+use config::TlsConfig;
use data::*;
use error::Error;
-use membership::*;
-use rpc_client::*;
-use server::TlsConfig;
+
+use rpc::membership::*;
+use rpc::rpc_client::*;
use admin_rpc::*;