Skip to content

Commit

Permalink
Merge pull request #1065 from Mongey/cm-create-partitions
Browse files Browse the repository at this point in the history
Add CreatePartitions to Broker
  • Loading branch information
eapache authored Mar 8, 2018
2 parents eae9146 + 72220d2 commit 5983794
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 5983794

Please sign in to comment.