Plugins

Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0

ChannelHandlers

Application handlers for incoming channel commands, queries, and telemetry.

API

Application handlers for incoming channel commands, queries, and telemetry. Install before start so Hello advertises the supported capabilities.

Namespace: DARTWIC::Share.

#include <dartwic/share/DARTWICShareProtocol.h>

Declaration

struct ChannelHandlers {
    std::function<void(const ChannelUpsert&)> upsert;
    std::function<void(const ChannelRemove&)> remove;
    std::function<void(const ChannelBulkUpsert&)> bulk_upsert;
    std::function<ChannelQueryResult(const ChannelQuery&)> query;
    std::function<void(const ChannelTelemetry&)> telemetry;
    std::function<void(const FixedGenerationTelemetry&)> fixed_generation;
};