diff options
Diffstat (limited to 'weed/pb/mq.proto')
| -rw-r--r-- | weed/pb/mq.proto | 9 |
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; |
