struct Raft::RPC::Envelope

Overview

Wraps an RPC message with the sender's node ID.

Created by the transport layer so the receiving node can attribute responses to specific peers (e.g., knowing which peer granted a vote).

Defined in:

raft/rpc.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(from : String, message : Message) #

[View source]

Instance Method Detail

def from : String #

The node ID of the sender.


[View source]
def message : Message #

The RPC message.


[View source]