1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
pub const DEFAULT_HOST: &str = "0.0.0.0";
pub const DEFAULT_ABCI_PORT: &str = "26658";
pub const DEFAULT_METRICS_PORT: &str = "12121";

pub struct Config {
    pub host: String,
    pub abci_port: String,
    pub metrics_port: String,
}

impl Default for Config {
    fn default() -> Self {
        Self {
            host: DEFAULT_HOST.to_string(),
            abci_port: DEFAULT_ABCI_PORT.to_string(),
            metrics_port: DEFAULT_METRICS_PORT.to_string(),
        }
    }
}