Skip to content

Commit

Permalink
refactor: re-order config sections in A-z
Browse files Browse the repository at this point in the history
  • Loading branch information
itsusinn committed Feb 1, 2022
1 parent a145593 commit 00f7212
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ use std::path::Path;
pub struct Config {
#[educe(Default = false)]
pub enable: bool,
pub nats: NatsConfig,
// A-z order
pub cipher: CipherConfig,
pub telegram: TelegramConfig,
pub nats: NatsConfig,
pub proxy: ProxyConfig,
pub telegram: TelegramConfig,

pub target_address_mapper: DashMap<i64, ArcStr>,
}

Expand Down Expand Up @@ -68,8 +70,13 @@ pub struct WebhookConfig {
pub enable: bool,
#[educe(Default = false)]
pub heroku: bool,
#[educe(Default = 8889)]
#[educe(Default = 443)]
pub port: u16,
#[educe(Default = "heroku-app-name.herokuapp.com")]
pub host: String,
}

#[basic_derive]
pub struct FormatConfig {
pub msg: ArcStr
}

0 comments on commit 00f7212

Please sign in to comment.