findPartitions extracts the partition ids associated with the topic from the list of Partitions provided.
(topic string, partitions []Partition)
| 288 | // findPartitions extracts the partition ids associated with the topic from the |
| 289 | // list of Partitions provided. |
| 290 | func findPartitions(topic string, partitions []Partition) []int { |
| 291 | var ids []int |
| 292 | for _, partition := range partitions { |
| 293 | if partition.Topic == topic { |
| 294 | ids = append(ids, partition.ID) |
| 295 | } |
| 296 | } |
| 297 | return ids |
| 298 | } |
| 299 | |
| 300 | // findMembersByTopic groups the memberGroupMetadata by topic. |
| 301 | func findMembersByTopic(members []GroupMember) map[string][]GroupMember { |
no outgoing calls
no test coverage detected