WIP on client and clean up the binned range data structures

This commit is contained in:
Dominik Werder
2021-04-29 09:46:13 +02:00
parent bd70738e74
commit de952a6e64
13 changed files with 327 additions and 98 deletions

View File

@@ -12,6 +12,7 @@ pub struct Opts {
#[derive(Debug, Clap)]
pub enum SubCmd {
Retrieval(Retrieval),
Client(Client),
}
#[derive(Debug, Clap)]
@@ -19,3 +20,30 @@ pub struct Retrieval {
#[clap(long)]
pub config: String,
}
#[derive(Debug, Clap)]
pub struct Client {
#[clap(subcommand)]
pub client_type: ClientType,
}
#[derive(Debug, Clap)]
pub enum ClientType {
Binned(BinnedClient),
}
#[derive(Debug, Clap)]
pub struct BinnedClient {
#[clap(long)]
pub host: String,
#[clap(long)]
pub port: u16,
#[clap(long)]
pub channel: String,
#[clap(long)]
pub beg: String,
#[clap(long)]
pub end: String,
#[clap(long)]
pub bins: u32,
}