Struct Channel

Struct Documentation

struct Channel

Describes a Channel that messages are written to. A Channel represents a single connection from a publisher to a topic, so each topic will have one Channel per publisher. Channels optionally reference a Schema, for message encodings that are not self-describing (e.g. JSON) or when schema information is available (e.g. JSONSchema).

Public Functions

Channel() = default
inline Channel(const std::string_view topic, const std::string_view messageEncoding, SchemaId schemaId, const KeyValueMap &metadata = {})

Public Members

ChannelId id
std::string topic
std::string messageEncoding
SchemaId schemaId
KeyValueMap metadata