Have ideas to improve npm?Join in the discussion! »

    nsq-manage

    0.1.1 • Public • Published

    Build Status

    nsq-manage

    Manage nsqd instances. Basically a lightweight wrapper about nsqd's http api.

    Installation

    $ npm install nsq-manage

    Example

    var manage = require('nsq-manage')('http://localhost:4151');
     
    manage.createTopic('name', function(err){
      // ...
    });

    API

    Manage(nsqd)

    Create a management instance with the nsqd http address.

    #createTopic(topic, fn)

    Create topic.

    #deleteTopic(topic, fn)

    Delete topic.

    #createChannel(topic, channel, fn)

    Create channel for an existing topic.

    #deleteChannel(topic, channel, fn)

    Delete channel for an existing topic.

    #emptyChannel(topic, channel, fn)

    Empty channel for an existing topic.

    #pauseChannel(topic, channel, fn)

    Pause channel for an existing topic.

    #unpauseChannel(topic, channel, fn)

    Unpause channel for an existing topic.

    #stats(fn)

    Get internal instrumented statistics.

    #ping(fn)

    Check health.

    License

    MIT

    Keywords

    none

    Install

    npm i nsq-manage

    DownloadsWeekly Downloads

    46

    Version

    0.1.1

    License

    MIT

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar