@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.
18 lines (15 loc) • 422 B
JavaScript
const Encoder = require('../../../encoder')
const { SaslHandshake: apiKey } = require('../../apiKeys')
/**
* SaslHandshake Request (Version: 0) => mechanism
* mechanism => STRING
*/
/**
* @param {string} mechanism - SASL Mechanism chosen by the client
*/
module.exports = ({ mechanism }) => ({
apiKey,
apiVersion: 0,
apiName: 'SaslHandshake',
encode: async () => new Encoder().writeString(mechanism),
})