redis-smq-rest-api
Version:
REST API for RedisSMQ: OpenAPI 3 schema and Swagger UI for managing queues, messages, and consumers.
24 lines • 854 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.NamespacesService = void 0;
const bluebird_1 = __importDefault(require("bluebird"));
const { promisifyAll } = bluebird_1.default;
class NamespacesService {
constructor(namespaceManager) {
this.namespaceManager = promisifyAll(namespaceManager);
}
getNamespaces() {
return this.namespaceManager.getNamespacesAsync();
}
getNamespaceQueues(ns) {
return this.namespaceManager.getNamespaceQueuesAsync(ns);
}
deleteNamespace(ns) {
return this.namespaceManager.deleteAsync(ns);
}
}
exports.NamespacesService = NamespacesService;
//# sourceMappingURL=NamespacesService.js.map