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.

17 lines (15 loc) 414 B
const Encoder = require('../../../encoder') const { DeleteTopics: apiKey } = require('../../apiKeys') /** * DeleteTopics Request (Version: 0) => [topics] timeout * topics => STRING * timeout => INT32 */ module.exports = ({ topics, timeout = 5000 }) => ({ apiKey, apiVersion: 0, apiName: 'DeleteTopics', encode: async () => { return new Encoder().writeArray(topics).writeInt32(timeout) }, })