hermesmq-core 0.1.0

Core engine for hermesmq: queue state machine and Raft application types
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::net::SocketAddr;
use std::path::PathBuf;

use crate::types::NodeId;

#[derive(Debug, Clone)]
pub struct NodeConfig {
    pub node_id: NodeId,
    pub data_dir: PathBuf,
    pub client_addr: SocketAddr,
    pub peer_addr: SocketAddr,
}