Преглед на файлове

Merge pull request #1065 from Mongey/cm-create-partitions

Add CreatePartitions to Broker
Evan Huus преди 8 години
родител
ревизия
5983794945
променени са 1 файла, в които са добавени 11 реда и са изтрити 0 реда
  1. 11 0
      broker.go

+ 11 - 0
broker.go

@@ -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)