C++ Server-Side SDK
LaunchDarkly SDK
|
#include <event_handler.hpp>
Classes | |
struct | Delete |
struct | Patch |
struct | Put |
Public Types | |
enum class | MessageStatus { kMessageHandled , kInvalidMessage , kUnhandledVerb } |
Public Member Functions | |
DataSourceEventHandler (data_interfaces::IDestination &handler, Logger const &logger, data_components::DataSourceStatusManager &status_manager) | |
MessageStatus | HandleMessage (std::string const &type, std::string const &data) |
This class handles LaunchDarkly events, parses them, and then uses a IDestination to process the parsed events.
This is only used for streaming. For server polling the shape of the poll response is different than the put, so there is limited utility in sharing this handler.
Status indicating if the message was processed, or if there was an issue encountered.
DataSourceEventHandler::MessageStatus launchdarkly::server_side::data_systems::DataSourceEventHandler::HandleMessage | ( | std::string const & | type, |
std::string const & | data | ||
) |
Handles an event from the LaunchDarkly service.
type | The type of the event. "put"/"patch"/"delete". |
data | The content of the event. |