UNPKG

redis-smq

Version:

A simple high-performance Redis message queue for Node.js.

14 lines 514 B
import { v4 } from 'uuid'; import { EExchangeType, } from '../../types/exchange.js'; import { _validateExchangeFanOutParams } from './_validate-exchange-fan-out-params.js'; export function _getExchangeFanOutTransferable(fanOutName) { const params = _validateExchangeFanOutParams(fanOutName); if (params instanceof Error) return params; return { params, type: EExchangeType.FANOUT, exchangeTag: v4(), }; } //# sourceMappingURL=_get-exchange-fanout-transferable.js.map