UNPKG

serverless-offline-msk

Version:

A serverless offline plugin that enables AWS MSK events

18 lines (15 loc) 422 B
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), })