UNPKG

@dtu-olp-2024/kafka-nocobase

Version:

A NocoBase plugin for Apache Kafka integration, supporting message publishing, topic management, and event-driven workflows. Built for the DTU GreenHope project.

12 lines (11 loc) 308 B
module.exports = topicDataForBroker => { return topicDataForBroker.map( ({ topic, partitions, messagesPerPartition, sequencePerPartition }) => ({ topic, partitions: partitions.map(partition => ({ partition, messages: messagesPerPartition[partition], })), }) ) }