Back to Site
Loading...
Searching...
No Matches
librats::MessageMetadata Struct Reference

Message metadata for tracking and deduplication. More...

#include <gossipsub.h>

Collaboration diagram for librats::MessageMetadata:
[legend]

Public Member Functions

 MessageMetadata (const std::string &id, const std::string &t, const std::string &sender)
 

Public Attributes

std::string message_id
 
std::string topic
 
std::string sender_peer_id
 
std::chrono::steady_clock::time_point first_seen
 
std::chrono::steady_clock::time_point last_seen
 
std::vector< std::string > seen_from_peers
 
int hop_count
 
bool validated
 

Detailed Description

Message metadata for tracking and deduplication.

Definition at line 40 of file gossipsub.h.

Constructor & Destructor Documentation

◆ MessageMetadata()

librats::MessageMetadata::MessageMetadata ( const std::string &  id,
const std::string &  t,
const std::string &  sender 
)
inline

Definition at line 50 of file gossipsub.h.

Member Data Documentation

◆ first_seen

std::chrono::steady_clock::time_point librats::MessageMetadata::first_seen

Definition at line 44 of file gossipsub.h.

◆ hop_count

int librats::MessageMetadata::hop_count

Definition at line 47 of file gossipsub.h.

◆ last_seen

std::chrono::steady_clock::time_point librats::MessageMetadata::last_seen

Definition at line 45 of file gossipsub.h.

◆ message_id

std::string librats::MessageMetadata::message_id

Definition at line 41 of file gossipsub.h.

◆ seen_from_peers

std::vector<std::string> librats::MessageMetadata::seen_from_peers

Definition at line 46 of file gossipsub.h.

◆ sender_peer_id

std::string librats::MessageMetadata::sender_peer_id

Definition at line 43 of file gossipsub.h.

◆ topic

std::string librats::MessageMetadata::topic

Definition at line 42 of file gossipsub.h.

◆ validated

bool librats::MessageMetadata::validated

Definition at line 48 of file gossipsub.h.


The documentation for this struct was generated from the following file: