VLink  2.0.0
A high-performance communication middleware
vlink::ProxyAPI::Data Struct Referencefinal

Raw message payload delivered via DataCallback or sent via send_data(). More...

#include <proxy_api.h>

Collaboration diagram for vlink::ProxyAPI::Data:

Public Attributes

std::string url
 Topic URL the data was captured on. More...
 
std::string ser
 Serialisation type of the payload. More...
 
SchemaType schema {SchemaType::kUnknown}
 Coarse schema family of the payload. More...
 
Bytes raw
 Raw serialised message bytes. More...
 
int64_t timestamp {-1}
 Sender/session timestamp in microseconds; -1 if unset. More...
 
int64_t seq {0}
 Sender or relay sequence number for the URL. More...
 

Detailed Description

Raw message payload delivered via DataCallback or sent via send_data().

In non-direct observe/record modes the server relays raw serialised bytes plus routing metadata. In direct mode the callback is fed by the local direct subscriber created by ProxyAPI. When sending data, timestamp and seq are caller-defined and forwarded verbatim.

Member Data Documentation

◆ raw

Bytes vlink::ProxyAPI::Data::raw

Raw serialised message bytes.

◆ schema

SchemaType vlink::ProxyAPI::Data::schema {SchemaType::kUnknown}

Coarse schema family of the payload.

◆ seq

int64_t vlink::ProxyAPI::Data::seq {0}

Sender or relay sequence number for the URL.

◆ ser

std::string vlink::ProxyAPI::Data::ser

Serialisation type of the payload.

◆ timestamp

int64_t vlink::ProxyAPI::Data::timestamp {-1}

Sender/session timestamp in microseconds; -1 if unset.

◆ url

std::string vlink::ProxyAPI::Data::url

Topic URL the data was captured on.


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