Clio  develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
ForwardFeed.hpp
1#pragma once
2
3#include "feed/impl/SingleFeedBase.hpp"
4
5#include <boost/json/object.hpp>
6#include <boost/json/serialize.hpp>
7
8namespace feed::impl {
9
13struct ForwardFeed : public SingleFeedBase {
15
19 void
20 pub(boost::json::object const& json)
21 {
22 SingleFeedBase::pub(boost::json::serialize(json));
23 }
24};
25} // namespace feed::impl
void pub(std::string msg)
Publishes the feed in strand.
Definition SingleFeedBase.cpp:51
SingleFeedBase(util::async::AnyExecutionContext &executionCtx, std::string const &name)
Construct a new Single Feed Base object.
Definition SingleFeedBase.cpp:16
Feed that publishes the json object as it is.
Definition ForwardFeed.hpp:13
void pub(boost::json::object const &json)
Publishes the json object.
Definition ForwardFeed.hpp:20
SingleFeedBase(util::async::AnyExecutionContext &executionCtx, std::string const &name)
Construct a new Single Feed Base object.
Definition SingleFeedBase.cpp:16