This sample outputs an object message to the specified queue on a timer trigger (every minute).
index.js
module.exports = function (context, input) { context.bindings.myQueueItem = input.body; context.done(); };
{ "bindings": [ { "type": "httpTrigger", "direction": "in", "authLevel": "function", "name": "input", "methods": [ "get", "post" ] }, { "type": "rabbitMQ", "name": "outputMessage", "queueName": "outputQueue", "connectionStringSetting": "rabbitMQConnectionAppSetting", "direction": "out" } ] }
index.js
module.exports = async function (context, myQueueItem) { context.log('JavaScript RabbitMQ trigger function processed work item', myQueueItem); };
function.json
{ "bindings": [ { "name": "myQueueItem", "type": "rabbitMQTrigger", "direction": "in", "queueName": "queue", "connectionStringSetting": "rabbitMQConnectionAppSetting" } ] }
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4