v0.11.6
Admin API
This release adds support for the Topic Admin API (KIP-4):
- Create and delete topics
- Increase topic partition count
- Read and modify broker and topic configuration
- Requires librdkafka >= v0.11.6
results, err := a.CreateTopics(
ctx,
// Multiple topics can be created simultaneously
// by providing additional TopicSpecification structs here.
[]kafka.TopicSpecification{{
Topic: "mynewtopic",
NumPartitions: 20,
ReplicationFactor: 3}})
More examples.