8000 GitHub - mengz0/amqp: Lua Client for AMQP 0.9.1 · GitHub
[go: up one dir, main page]

Skip to content
mengz0Public

About

Lua Client for AMQP 0.9.1

Resources

Stars

24 stars

Watchers

4 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

Repository files navigation

AMQP

Lua Client for AMQP 0.9.1

Requirements

  1. LuaJIT 2.1
  2. busted 2.0 (Testing framework)

Typical Use Cases

  • Consumer
local amqp = require "amqp"
local ctx = amqp.new({role = "consumer", queue = "mengz0", exchange = "amq.topic", ssl = false, user = "guest", password = "guest"})
ctx:connect("127.0.0.1",5672)
local ok, err = ctx:consume()
  • Producer
local amqp = require "amqp"
local ctx = amqp.new({role = "publisher", exchange = "amq.topic", ssl = false, user = "guest", password = "guest"})
ctx:connect("127.0.0.1",5672)
ctx:setup()
local ok, err = ctx:publish("Hello world!")

About

Lua Client for AMQP 0.9.1

Resources

Stars

24 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages

0