Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/segment-boneyard/nsq-delete-topic
Delete a nsq topic and all its channels and messages
https://github.com/segment-boneyard/nsq-delete-topic
Last synced: about 7 hours ago
JSON representation
Delete a nsq topic and all its channels and messages
- Host: GitHub
- URL: https://github.com/segment-boneyard/nsq-delete-topic
- Owner: segment-boneyard
- Created: 2014-04-05T23:56:06.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-04-06T02:27:51.000Z (over 10 years ago)
- Last Synced: 2024-05-21T12:11:19.223Z (6 months ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 3
- Watchers: 38
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: History.md
Awesome Lists containing this project
README
# nsq-delete-topic
Delete a nsq topic and all its channels and messages.
## API
### deleteTopic(nsqlookupd, topic, fn)
Given a string or array of strings of `nsqlookupd` addresses, and a `topic`,
delete that topic from all known instances of `nsqd` and call `fn` with the
possible error object.```js
var deleteTopic = require('nsq-delete-topic');deleteTopic('http://localhost:4161', 'events', function(err){
// ...
});
```## Installation
```bash
$ npm install nsq-delete-topic
```## License
MIT