Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/edragonconnect/ex_aliyun_amqp
https://github.com/edragonconnect/ex_aliyun_amqp
Last synced: about 6 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/edragonconnect/ex_aliyun_amqp
- Owner: edragonconnect
- License: mit
- Created: 2019-11-08T14:46:09.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-05T08:29:38.000Z (almost 5 years ago)
- Last Synced: 2024-10-29T08:41:57.390Z (8 days ago)
- Language: Elixir
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ExAliyunAMQP.Connection
This library is built on [amqp](https://hex.pm/packages/amqp) and make a simple wrapper for `AMQP.Connection` within Alibaba AMQP product's authorization.
## Installation
Adding `ex_aliyun_amqp` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:ex_aliyun_amqp, "~> 0.1"}
]
end
```## Sample
```elixir
def main() do
options = [
access_id: "",
secret_key: "",
owner_id: "",
host: "",
virtual_host: ""
]{:ok, connection} = ExAliyunAMQP.Connection.open(options)
# The returned `connection` is an AMQP.Connection, and then
# can be used for the ongoing call to AMQP.Channel.open/1 .
end```
## Reference
[Idiomatic Elixir client for RabbitMQ](https://github.com/pma/amqp)
[Erlang RabbitMQ Client library](http://www.rabbitmq.com/erlang-client-user-guide.html)