[][src]Struct grin_servers::common::types::ServerConfig

pub struct ServerConfig {
    pub db_root: String,
    pub api_http_addr: String,
    pub api_secret_path: Option<String>,
    pub tls_certificate_file: Option<String>,
    pub tls_certificate_key: Option<String>,
    pub chain_type: ChainTypes,
    pub chain_validation_mode: ChainValidationMode,
    pub archive_mode: Option<bool>,
    pub skip_sync_wait: Option<bool>,
    pub run_tui: Option<bool>,
    pub run_test_miner: Option<bool>,
    pub test_miner_wallet_url: Option<String>,
    pub p2p_config: P2PConfig,
    pub pool_config: PoolConfig,
    pub dandelion_config: DandelionConfig,
    pub stratum_mining_config: Option<StratumServerConfig>,
    pub webhook_config: WebHooksConfig,
}

Full server configuration, aggregating configurations required for the different components.

Fields

db_root: String

Directory under which the rocksdb stores will be created

api_http_addr: String

Network address for the Rest API HTTP server.

api_secret_path: Option<String>

Location of secret for basic auth on Rest API HTTP server.

tls_certificate_file: Option<String>

TLS certificate file

tls_certificate_key: Option<String>

TLS certificate private key file

chain_type: ChainTypes

Setup the server for tests, testnet or mainnet

chain_validation_mode: ChainValidationMode

Automatically run full chain validation during normal block processing?

archive_mode: Option<bool>

Whether this node is a full archival node or a fast-sync, pruned node

skip_sync_wait: Option<bool>

Whether to skip the sync timeout on startup (To assist testing on solo chains)

run_tui: Option<bool>

Whether to run the TUI if enabled, this will disable logging to stdout

run_test_miner: Option<bool>

Whether to run the test miner (internal, cuckoo 16)

test_miner_wallet_url: Option<String>

Test miner wallet URL

p2p_config: P2PConfig

Configuration for the peer-to-peer server

pool_config: PoolConfig

Transaction pool configuration

dandelion_config: DandelionConfig

Dandelion configuration

stratum_mining_config: Option<StratumServerConfig>

Configuration for the mining daemon

webhook_config: WebHooksConfig

Configuration for the webhooks that trigger on certain events

Trait Implementations

impl PartialEq<ServerConfig> for ServerConfig[src]

impl Default for ServerConfig[src]

impl Clone for ServerConfig[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ServerConfig[src]

impl<'de> Deserialize<'de> for ServerConfig[src]

impl Serialize for ServerConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T> DebugAny for T where
    T: Any + Debug

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> UnsafeAny for T where
    T: Any

impl<T> SafeBorrow for T where
    T: ?Sized

impl<'a, T> DefaultFeatures for T where
    T: 'a + Send + Sync + Clone

impl<'a, T> NonSyncFeatures for T where
    T: 'a + Clone

impl<T> Same for T

type Output = T

Should always be Self