aboutsummaryrefslogtreecommitdiff
path: root/weed/pb/mq.proto
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2023-09-24 14:22:11 -0700
committerchrislu <chris.lu@gmail.com>2023-09-24 22:00:43 -0700
commit0361c321b40e5b0ff13edf01c8bb1b095f612caf (patch)
tree9117922ea1663c9a81ada68dad10f35528ff6171 /weed/pb/mq.proto
parent0f8168c0c928bba3d2f48b0680d3bdce9c617559 (diff)
downloadseaweedfs-0361c321b40e5b0ff13edf01c8bb1b095f612caf.tar.xz
seaweedfs-0361c321b40e5b0ff13edf01c8bb1b095f612caf.zip
add CreateTopic API
Diffstat (limited to 'weed/pb/mq.proto')
-rw-r--r--weed/pb/mq.proto9
1 files changed, 9 insertions, 0 deletions
diff --git a/weed/pb/mq.proto b/weed/pb/mq.proto
index 08c41f751..36329ef0e 100644
--- a/weed/pb/mq.proto
+++ b/weed/pb/mq.proto
@@ -26,6 +26,8 @@ service SeaweedMessaging {
// control plane for topic partitions
rpc LookupTopicBrokers (LookupTopicBrokersRequest) returns (LookupTopicBrokersResponse) {
}
+ rpc CreateTopic (CreateTopicRequest) returns (CreateTopicResponse) {
+ }
// a pub client will call this to get the topic partitions assignment
rpc RequestTopicPartitions (RequestTopicPartitionsRequest) returns (RequestTopicPartitionsResponse) {
}
@@ -128,6 +130,13 @@ message ConnectToBalancerRequest {
message ConnectToBalancerResponse {
}
//////////////////////////////////////////////////
+message CreateTopicRequest {
+ Topic topic = 1;
+ int32 partition_count = 2;
+}
+message CreateTopicResponse {
+ repeated BrokerPartitionAssignment broker_partition_assignments = 2;
+}
message LookupTopicBrokersRequest {
Topic topic = 1;
bool is_for_publish = 2;