-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy pathTopicService.h
More file actions
51 lines (43 loc) · 1.36 KB
/
TopicService.h
File metadata and controls
51 lines (43 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// SPDX-License-Identifier: Apache-2.0
#ifndef HIERO_TCK_CPP_TOPIC_SERVICE_H_
#define HIERO_TCK_CPP_TOPIC_SERVICE_H_
#include <nlohmann/json_fwd.hpp>
namespace Hiero::TCK::TopicService
{
/**
* Forward declarations.
*/
struct CreateTopicParams;
struct DeleteTopicParams;
struct GetTopicInfoQueryParams;
struct TopicMessageSubmitParams;
/**
* Create a topic.
*
* @param params The parameters to use to create a topic.
* @return A JSON response containing the status of the topic creation and the new topic's ID.
*/
nlohmann::json createTopic(const CreateTopicParams& params);
/**
* Delete a topic
*
* @param params The parameters to use to delete a topic.
* @return A json response containing the status of the deletion of the topic.
*/
nlohmann::json deleteTopic(const DeleteTopicParams& params);
/**
* Get topic info.
*
* @param params The parameters to use to get info of a topic.
* @return A JSON response containing the status of the topic info.
*/
nlohmann::json getTopicInfo(const GetTopicInfoQueryParams& params);
/**
* Submit a topic message.
*
* @param params The parameters to use to submit a topic message.
* @return A JSON response containing the status of the submission of the topic message.
*/
nlohmann::json submitTopicMessage(const TopicMessageSubmitParams& params);
} // namespace Hiero::TCK::TopicService
#endif // HIERO_TCK_CPP_TOPIC_SERVICE_H_