userver
C++ Async Framework
Loading...
Searching...
No Matches
samples/kafka_service/src/consumer_handler.hpp
#pragma once
#include <string_view>
#include <userver/kafka/consumer_scope.hpp>
#include <
userver/components/component_base.hpp
>
#include <
userver/utest/using_namespace_userver.hpp
>
namespace
kafka_sample {
class
ConsumerHandler final :
public
components::ComponentBase
{
public
:
static
constexpr
std::string_view kName{
"consumer-handler"
};
ConsumerHandler(
const
components::ComponentConfig
& config,
const
components::ComponentContext
& context);
private
:
// Subscriptions must be the last fields! Add new fields above this comment.
kafka::ConsumerScope
consumer_;
};
}
// namespace kafka_sample
Generated on Wed Dec 4 2024 18:42:01 for userver by
Doxygen
1.10.0