WritablePartitions returns the sorted list of all writable partition IDs for the given topic, where "writable" means "having a valid leader accepting writes".
(topic string)
| 51 | // the given topic, where "writable" means "having a valid leader accepting |
| 52 | // writes". |
| 53 | WritablePartitions(topic string) ([]int32, error) |
| 54 | |
| 55 | // Leader returns the broker object that is the leader of the current |
| 56 | // topic/partition, as determined by querying the cluster metadata. |
no outgoing calls