userver: kafka::utest::Message Struct Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
kafka::utest::Message Struct Reference

#include <userver/kafka/utest/kafka_fixture.hpp>

Detailed Description

Message owning data wrapper for unit tests.

Examples
samples/kafka_service/unittest/kafka_test.cpp.

Definition at line 23 of file kafka_fixture.hpp.

Public Attributes

std::string topic
 
std::string key
 
std::string payload
 
std::optional< std::uint32_t > partition {}
 
std::vector< OwningHeaderheaders {}
 

Member Data Documentation

◆ headers

std::vector<OwningHeader> kafka::utest::Message::headers {}

Definition at line 28 of file kafka_fixture.hpp.

◆ key

std::string kafka::utest::Message::key

Definition at line 25 of file kafka_fixture.hpp.

◆ partition

std::optional<std::uint32_t> kafka::utest::Message::partition {}

Definition at line 27 of file kafka_fixture.hpp.

◆ payload

std::string kafka::utest::Message::payload

Definition at line 26 of file kafka_fixture.hpp.

◆ topic

std::string kafka::utest::Message::topic

Definition at line 24 of file kafka_fixture.hpp.


The documentation for this struct was generated from the following file: