keri_controller/
config.rs

1use std::path::PathBuf;
2
3use keri_core::{
4    oobi::LocationScheme,
5    processor::escrow::EscrowConfig,
6    transport::{default::DefaultTransport, Transport},
7};
8
9use crate::communication::{HTTPTelTransport, IdentifierTelTransport};
10
11pub struct ControllerConfig {
12    pub db_path: PathBuf,
13    pub initial_oobis: Vec<LocationScheme>,
14    pub escrow_config: EscrowConfig,
15    pub transport: Box<dyn Transport + Send + Sync>,
16    pub tel_transport: Box<dyn IdentifierTelTransport + Send + Sync>,
17}
18
19impl Default for ControllerConfig {
20    fn default() -> Self {
21        Self {
22            db_path: PathBuf::from("db"),
23            initial_oobis: vec![],
24            escrow_config: EscrowConfig::default(),
25            transport: Box::new(DefaultTransport::new()),
26            tel_transport: Box::new(HTTPTelTransport),
27        }
28    }
29}