pub struct RaftServer {
pub id: String,
pub node: String,
pub address: String,
pub leader: bool,
pub voter: bool,
pub raft_protocol: String,
}
Expand description
RaftServer has information about a server in the Raft configuration.
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§id: String
ID is the unique ID for the server. These are currently the same as the address, but they will be changed to a real GUID in a future release of Nomad.
node: String
Node is the node name of the server, as known by Nomad, or this will be set to “(unknown)” otherwise.
address: String
Address is the IP:port of the server, used for Raft communications.
leader: bool
Leader is true if this server is the current cluster leader.
voter: bool
Voter is true if this server has a vote in the cluster. This might be false if the server is staging and still coming online, or if it’s a non-voting server, which will be added in a future release of Nomad.
raft_protocol: String
RaftProtocol is the version of the Raft protocol spoken by this server.
Trait Implementations§
Source§impl Clone for RaftServer
impl Clone for RaftServer
Source§fn clone(&self) -> RaftServer
fn clone(&self) -> RaftServer
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more