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.

21 lines (18 loc) 667 B
const requestV0 = require('../v0/request') /** * TxnOffsetCommit Request (Version: 1) => transactional_id group_id producer_id producer_epoch [topics] * transactional_id => STRING * group_id => STRING * producer_id => INT64 * producer_epoch => INT16 * topics => topic [partitions] * topic => STRING * partitions => partition offset metadata * partition => INT32 * offset => INT64 * metadata => NULLABLE_STRING */ module.exports = ({ transactionalId, groupId, producerId, producerEpoch, topics }) => Object.assign(requestV0({ transactionalId, groupId, producerId, producerEpoch, topics }), { apiVersion: 1, })