INNER CODE UNIT · JavaScript

completePartitions

tulios/kafkajs · src/admin/index.js:470

      const completePartitions = partitions.map(({ partition, offset, metadata }) => ({
        partition,
        offset,
        metadata: metadata || null,
      }))

      return { topic, partitions: completePartitions }
    })
  }

  /**
   * @param {string} groupId
   * @param {string} topic
   * @param {boolean} [earliest=false]
   * @return {Promise}
   */
  const resetOffsets = async ({ groupId, topic, earliest = false }) => {
    if (!groupId) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…