|
|
@@ -386,6 +386,17 @@ func (b *Broker) ApiVersions(request *ApiVersionsRequest) (*ApiVersionsResponse,
|
|
|
return response, nil
|
|
|
}
|
|
|
|
|
|
+func (b *Broker) CreatePartitions(request *CreatePartitionsRequest) (*CreatePartitionsResponse, error) {
|
|
|
+ response := new(CreatePartitionsResponse)
|
|
|
+
|
|
|
+ err := b.sendAndReceive(request, response)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+
|
|
|
+ return response, nil
|
|
|
+}
|
|
|
+
|
|
|
func (b *Broker) CreateTopics(request *CreateTopicsRequest) (*CreateTopicsResponse, error) {
|
|
|
response := new(CreateTopicsResponse)
|
|
|
|