An open API service indexing awesome lists of open source software.

https://github.com/cilindrox/go-rabbitmq

A simple pub-sub Go implementation for rabbitMQ
https://github.com/cilindrox/go-rabbitmq

Last synced: 11 months ago
JSON representation

A simple pub-sub Go implementation for rabbitMQ

Awesome Lists containing this project

README

          

# go-rabbitmq
[![Build Status](https://travis-ci.org/cilindrox/go-rabbitmq.svg?branch=master)](https://travis-ci.org/cilindrox/go-rabbitmq) [![Code Climate](https://codeclimate.com/repos/56cb2250f5d6231ca700dc2f/badges/04d036cd3c37a0707b2a/gpa.svg)](https://codeclimate.com/repos/56cb2250f5d6231ca700dc2f/feed)

This is basically a sample implementation, mostly taken from the [RabbitMQ tutorials](http://www.rabbitmq.com/getstarted.html).

## Requirements

To run this code you need [Go RabbitMQ client](https://github.com/streadway/amqp):

go get github.com/streadway/amqp

## Settings

The following env vars need to be set in order to run the project:

`RABBIT_URL`: rabbitMQ server URL.
`TWILIO_ACCOUNT_SID`, `TWILIO_AUTH_TOKEN` and `TWILIO_FROM_NUM`: Your Twilio account credentials.

## Code

Code examples are executed via `go run`:

[Tutorial one: "Hello World!"](http://www.rabbitmq.com/tutorial-one-go.html):

go run send.go
go run receive.go

To learn more, see [Go RabbitMQ client](https://github.com/streadway/amqp).