2017-02-16 14:51:33 +01:00
|
|
|
pub use parity_ipfs_api::start_server;
|
2017-02-16 14:41:33 +01:00
|
|
|
|
|
|
|
#[derive(Debug, PartialEq, Clone)]
|
|
|
|
pub struct Configuration {
|
|
|
|
pub enabled: bool,
|
|
|
|
pub port: u16,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Default for Configuration {
|
|
|
|
fn default() -> Self {
|
|
|
|
Configuration {
|
|
|
|
enabled: false,
|
|
|
|
port: 5001,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|