amqp-client
amqp-client
An AMQP 0-9-1 client for Crystal.
Installation
- Add the dependency to your
shard.yml
:
dependencies:
amqp-client:
github: cloudamqp/amqp-client.cr
- Run
shards install
Usage
require "amqp-client"
c = AMQP::Client.new("amqp://guest:guest@localhost").connect
ch = c.channel
q = ch.queue
q.publish "hej"
msg = q.get(no_ack: true)
puts msg.body_io.to_s
c.close
Contributing
- Fork it (https://github.com/cloudamqp/amqp-client.cr/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- Carl Hörberg - creator and maintainer