cloudqw-pass

A Generic CloudQ worker that receives a request and passes it to another api.

npm install cloudqw-pass
1 downloads in the last day
2 downloads in the last week
17 downloads in the last month

cloudqw-pass

Pass is a Cloudq worker that passes the job from the queue to a specified url performing a post.

install

npm install cloudqw-pass

use

var pass = require('cloudqw-pass'),
config = {
  protocol: 'http',
  host: 'localhost:3000',
  pathname: '/foo',
  interval: 2000
}
pass(config, 'http://foo.com/api/resource', function(err, res){
  console.log('posted job to ' + /resource);
});
npm loves you