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) 654 B
const requestV3 = require('../v3/request') /** * OffsetCommit Request (Version: 4) => group_id generation_id member_id retention_time [topics] * group_id => STRING * generation_id => INT32 * member_id => STRING * retention_time => INT64 * topics => topic [partitions] * topic => STRING * partitions => partition offset metadata * partition => INT32 * offset => INT64 * metadata => NULLABLE_STRING */ module.exports = ({ groupId, groupGenerationId, memberId, retentionTime, topics }) => Object.assign(requestV3({ groupId, groupGenerationId, memberId, retentionTime, topics }), { apiVersion: 4, })