UNPKG

kafkajs

Version:

A modern Apache Kafka client for node.js

21 lines (18 loc) 654 B
const requestV2 = require('../v2/request') /** * OffsetCommit Request (Version: 3) => 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(requestV2({ groupId, groupGenerationId, memberId, retentionTime, topics }), { apiVersion: 3, })