amqp-client

AMQP 0-9.1, a messaging protocol, implemented by eg. RabbitMQ
0.2.1 released

Build Status

amqp-client

An AMQP 0-9-1 client for Crystal.

Installation

  1. Add the dependency to your shard.yml:
dependencies:
  amqp-client:
    github: cloudamqp/amqp-client.cr
  1. 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

  1. Fork it (https://github.com/cloudamqp/amqp-client.cr/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

amqp-client:
  github: cloudamqp/amqp-client.cr
  version: ~> 0.2.1
License MIT
Crystal 0.27.0

Authors

Dependencies 1

Development Dependencies 0

Dependents 1

Last synced .
search fire star recently