class AMQP::Client

Defined in:

amqp-client.cr
amqp-client/channel.cr
amqp-client/connection.cr
amqp-client/errors.cr
amqp-client/exchange.cr
amqp-client/message.cr
amqp-client/queue.cr
amqp-client/sync.cr
amqp-client/version.cr
amqp-client/websocket_io.cr

Constant Summary

LOG = ::Log.for(self)
SCHEME_PORT = {"amqp" => 5672, "amqps" => 5671, "ws" => 80, "wss" => 443, "http" => 80, "https" => 443}
TLS_SCHEMES = ["amqps", "wss", "https"] of ::String
VERSION = {{ (`shards version`).stringify }}
WS_SCHEMES = ["ws", "wss", "http", "https"] of ::String

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(url : String) #

[View source]
def self.new(uri : URI) #

[View source]
def self.new(host = "localhost", port = 5672, vhost = "/", user = "guest", password = "guest", tls = false, websocket = false, channel_max = 1024_u16, frame_max = 131072_u32, heartbeat = 0_u16, verify_mode = OpenSSL::SSL::VerifyMode::PEER, name : String? = File.basename(PROGRAM_NAME), tcp_nodelay = false, tcp_keepalive = {idle: 60, interval: 10, count: 3}) #

[View source]

Class Method Detail

def self.start(url : String | URI, &blk : AMQP::Client::Connection -> _) #

[View source]
def self.start(host = "localhost", port = 5672, vhost = "/", user = "guest", password = "guest", tls = false, websocket = false, channel_max = 1024_u16, frame_max = 131072_u32, heartbeat = 0_u16, verify_mode = OpenSSL::SSL::VerifyMode::PEER, name = nil, &blk : AMQP::Client::Connection -> _) #

[View source]

Instance Method Detail

def connect : Connection #

[View source]
def host : String #

[View source]
def port : Int32 #

[View source]
def tls : Bool #

[View source]
def user : String #

[View source]
def vhost : String #

[View source]
def websocket : Bool #

[View source]