syndicate-rs/src/config.rs

18 lines
445 B
Rust
Raw Normal View History

2020-05-18 11:16:14 +00:00
use structopt::StructOpt;
2021-08-09 13:19:00 +00:00
use std::path::PathBuf;
2020-05-18 11:16:14 +00:00
#[derive(Clone, StructOpt)]
pub struct ServerConfig {
#[structopt(short = "p", long = "port", default_value = "8001")]
pub ports: Vec<u16>,
2021-08-09 13:19:00 +00:00
#[structopt(short = "s", long = "socket")]
pub sockets: Vec<PathBuf>,
2020-05-18 11:16:14 +00:00
#[structopt(long, default_value = "10000")]
pub overload_threshold: usize,
#[structopt(long, default_value = "5")]
pub overload_turn_limit: usize,
}