go-amqp-example

module
v0.0.0-...-55ff8ba Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2015 License: MIT

README

go-amqp-example

Example of publisher and consumer of RabbitMQ messages in Golang

Requirements

The following instructions assume that you have Go correctly installed (and $GOPATH set correctly) and RabbitMQ installed with default settings.

Getting the code

go get github.com/andreagrandi/go-amqp-example

The code will be in $GOPATH/src/github.com/andreagrandi/go-amqp-example

Running the code

Run the publisher:

cd $GOPATH/src/github.com/andreagrandi/go-amqp-example/publisher
go run publisher.go

Run the consumer:

cd $GOPATH/src/github.com/andreagrandi/go-amqp-example/consumer
go run consumer.go

Credits

This source code is inspired by the examples available here http://godoc.org/github.com/streadway/amqp and it's been possible with the help of my co-workers at YoyoWallet.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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