UNPKG

redis-smq-rest-api

Version:

REST API for RedisSMQ: OpenAPI 3 schema and Swagger UI for managing queues, messages, and consumers.

18 lines 544 B
import bluebird from 'bluebird'; const { promisifyAll } = bluebird; export class ExchangesService { exchange; constructor(exchange) { this.exchange = promisifyAll(exchange); } async getQueueExchanges(queue) { return this.exchange.getQueueBoundExchangesAsync(queue); } async getNamespaceExchanges(ns) { return this.exchange.getNamespaceExchangesAsync(ns); } async getAllExchanges() { return this.exchange.getAllExchangesAsync(); } } //# sourceMappingURL=ExchangesService.js.map