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
- Host: GitHub
- URL: https://github.com/cilindrox/go-rabbitmq
- Owner: cilindrox
- License: mit
- Created: 2016-02-16T14:29:28.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-02T21:41:14.000Z (over 10 years ago)
- Last Synced: 2025-03-27T04:19:59.606Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-rabbitmq
[](https://travis-ci.org/cilindrox/go-rabbitmq) [](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).