VLink  2.0.0
A high-performance communication middleware
vlink::ProxyAPI::Data结构体 参考final

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

#include <proxy_api.h>

vlink::ProxyAPI::Data 的协作图:

Public 属性

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

详细描述

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.

类成员变量说明

◆ 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.


该结构体的文档由以下文件生成: