linera_rpc::config

Type Alias ValidatorInternalNetworkConfig

Source
pub type ValidatorInternalNetworkConfig = ValidatorInternalNetworkPreConfig<NetworkProtocol>;
Expand description

The network configuration for all shards.

Aliased Type§

struct ValidatorInternalNetworkConfig {
    pub protocol: NetworkProtocol,
    pub shards: Vec<ShardConfig>,
    pub host: String,
    pub port: u16,
    pub metrics_host: String,
    pub metrics_port: u16,
}

Fields§

§protocol: NetworkProtocol

The network protocol to use for all shards.

§shards: Vec<ShardConfig>

The available shards. Each chain UID is mapped to a unique shard in the vector in a static way.

§host: String

The host name of the proxy on the internal network (IP or hostname).

§port: u16

The port the proxy listens on on the internal network.

§metrics_host: String

The host name of the proxy’s metrics endpoint.

§metrics_port: u16

The port of the proxy’s metrics endpoint.

Implementations§