Skip to content

appmechanix/hooq-provider-amazon-sqs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hooq-provider-amazon-sqs

Amazon SQS driver for hooq.io

Installing

npm install hooq-provider-amazon-sqs --save

Example Usage

var awsProvider = require('hooq-provider-amazon-sqs');

// Creating a queue
awsProvider.CreateQueueIfNeeded(connectionModel, queueName, function(){
	console.log("Created queue");
});

// Pushing to a queue
awsProvider.Push(connectionModel, messageObject, function(){
	console.log("Done");
});

Methods

CreateQueueIfNeeded(connectionModel, queueName, callback)

Callback contains the queue url

Push(connectionModel, message, callback)

Callback contains the... something

Settings Object

var connectionModel = {
    AWSId: 'ID',
    AWSSecret: 'SECRET',
    Region: 'us-east-1',
    QueueUrl: '/364248950191/queue1420506635447'
};

About

Amazon SQS driver for hooq.io

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published