rbmq:用于产生RabbitMQ生产者和消费者的简单API

时间:2024-06-06 17:07:27
【文件属性】:

文件名称:rbmq:用于产生RabbitMQ生产者和消费者的简单API

文件大小:20KB

文件格式:ZIP

更新时间:2024-06-06 17:07:27

hex package elixir rabbitmq amqp

RBMQ 简单便捷地创建RabbitMQ的生产者和消费者。 通过撰写 安装 该软件包可以安装为: 添加rbmq到您的依赖项列表mix.exs : def deps do [{ :rbmq , " ~> 0.2.2 " }] end 在您的应用程序之前,请确保已启动rbmq : def application do [ applications: [ :rbmq ]] end 配置 您可以在config.exs定义连接配置: config :my_app , MyAMQPConnection , host: { :system , " AMQP_HOST " , " localhost " }, port: { :system , " AMQP_PORT " , 5672 }, username: { :system , " AMQP_USER " , "


【文件预览】:
rbmq-master
----.gitignore(119B)
----README.md(4KB)
----test()
--------producer_test.exs(3KB)
--------channel_test.exs(950B)
--------connection_test.exs(8KB)
--------test_helper.exs(110B)
--------helper_test.exs(2KB)
--------consumer_test.exs(2KB)
----config()
--------config.exs(1KB)
--------.credo.exs(275B)
----LICENSE.md(1KB)
----mix.lock(4KB)
----lib()
--------rbmq()
----mix.exs(1KB)
----.formatter.exs(84B)

网友评论