#pragma once
#include <string>
#include <userver/kafka/producer.hpp>
namespace kafka_sample {
enum class SendStatus {
kSuccess,
kErrorRetryable,
kErrorNonRetryable,
};
struct RequestMessage {
std::string topic;
std::string key;
std::string payload;
};
SendStatus Produce(
const kafka::Producer& producer,
const RequestMessage& message);
}