amqp-sb-client

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

README

amqp-sb-client

Go Go Report Card Release

Sends and receives AMQP messages to / from Azure Service Bus

Installation

Option 1 (script)
curl https://raw.githubusercontent.com/fhopfensperger/amqp-sb-client/master/get.sh | bash
Option 2 (manually)

Go to Releases download the latest release according to your processor architecture and operating system, then unzip and copy it to the right location

tar xvfz amqp-sb-client_x.x.x_darwin_amd64.tar.gz
cd amqp-sb-client_x.x.x_darwin_amd64
chmod +x amqp-sb-client
sudo mv amqp-sb-client /usr/local/bin/

Usage Examples:

Option 1
test.json
{ "key1": "value1", "key2": "value2", "message" }
Sending
amqp-sb-client send -f test.json -q myQueueName -c "Endpoint=sb://host.servicebus.windows.net/;SharedAccessKeyName=..."
Receiving one message
amqp-sb-client receive -q myQueueName -c "Endpoint=sb://host.servicebus.windows.net/;SharedAccessKeyName=..."
Receiving for a specific duration
amqp-sb-client receive -d 10m -q myQueueName -c "Endpoint=sb://host.servicebus.windows.net/;SharedAccessKeyName=..."
Option 2 (using environment variables)
Setting environment variables
export CONNECTION_STRING='Endpoint=sb:...'
export QUEUE="myQueueName"
Sending
amqp-sb-client send -f test.json 
Receiving
amqp-sb-client receive -d 1h

Documentation

Overview

Copyright © 2020 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL