redis-smq-rest-api
Version:
A RESTful API for RedisSMQ
18 lines • 501 B
JavaScript
import bluebird from 'bluebird';
const { promisifyAll } = bluebird;
export class NamespacesService {
namespace;
constructor(namespace) {
this.namespace = promisifyAll(namespace);
}
getNamespaces() {
return this.namespace.getNamespacesAsync();
}
getNamespaceQueues(ns) {
return this.namespace.getNamespaceQueuesAsync(ns);
}
deleteNamespace(ns) {
return this.namespace.deleteAsync(ns);
}
}
//# sourceMappingURL=NamespacesService.js.map