cable-amqp
cable-amqp
This is a Cable.cr backend extension for cloudamqp/amqp-client.cr.
Installation
-
Add the dependency to your
shard.yml
:dependencies: cable: github: cable-cr/cable cable-amqp: github: cable-cr/cable-amqp
-
Run
shards install
Usage
require "cable"
require "cable-amqp"
Cable.configure do |settings|
settings.url = ENV.fetch("CABLE_BACKEND_URL", "amqp://guest:guest@localhost")
settings.backend_class = Cable::AMQPBackend
# ... all other Cable config settings
end
You can use LavinMQ or any other AMQP supported broker.
Development
- Make the update
- Add a spec and run
crystal spec
- Format it
crystal tool format spec/ src/
- Ameba
./bin/ameba
- Commit it
- GO TO 1
Contributing
- Fork it (https://github.com/cable-cr/cable-amqp/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
- Jeremy Woertink - creator and maintainer
Repository
cable-amqp
Owner
Statistic
- 5
- 0
- 0
- 0
- 3
- 6 months ago
- May 26, 2024
License
MIT License
Links
Synced at
Sat, 21 Dec 2024 22:13:16 GMT
Languages