17
|
1
|
//! cfg::config::registry |
|
2
|
//! |
|
3
|
//! Registry configuration primitives |
|
4
|
//! |
|
5
|
//! A Registry is just a list of key=val pairs wrapped in an API. The |
|
6
|
//! RegistryConfig is used to bootstrap the Registry service, at which |
|
7
|
//! point the client can submit commands to the service socket. |
|
8
|
use super::{database::DatabaseConfig, network::NetworkConfig}; |
|
9
|
use serde::{Deserialize, Serialize}; |
|
10
|
|
|
11
|
/// Registry configuration type |
|
12
|
#[derive(Serialize, Deserialize, Debug, Hash, PartialEq)] |
|
13
|
pub struct RegistryConfig { |
|
14
|
crypto: Option<String>, |
|
15
|
net: Option<NetworkConfig>, |
|
16
|
db: DatabaseConfig, |
|
17
|
} |