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

VERSION = "1.2.7"

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 : String = AMQP_HOST, port : Int32 = AMQP_PORT, vhost : String = AMQP_VHOST, user : String = AMQP_USER, password : String = AMQP_PASS, tls : TLSContext = AMQP_TLS, websocket : Bool = AMQP_WS, channel_max : UInt16 = 1024_u16, frame_max : UInt32 = 131072_u32, heartbeat : UInt16 = 0_u16, verify_mode = OpenSSL::SSL::VerifyMode::PEER, name : String | Nil = File.basename(PROGRAM_NAME), connection_information : AMQP::Client::ConnectionInformation = ConnectionInformation.new("amqp-client.cr", AMQP::Client::VERSION, "Crystal", Crystal::VERSION, File.basename(PROGRAM_NAME)), tcp : AMQP::Client::TCPConfig = TCPConfig.new, buffer_size : Int32 = 16384) #

[View source]

Class Method Detail

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

[View source]
def self.start(host = AMQP_HOST, port = AMQP_PORT, vhost = AMQP_VHOST, user = AMQP_USER, password = AMQP_PASS, tls : TLSContext = AMQP_TLS, websocket = AMQP_WS, channel_max = 1024_u16, frame_max = 131072_u32, heartbeat = 0_u16, verify_mode = OpenSSL::SSL::VerifyMode::PEER, name = nil, connection_information = ConnectionInformation.new, & : AMQP::Client::Connection -> _) #

[View source]

Instance Method Detail

def buffer_size : Int32 #

[View source]
def buffer_size=(buffer_size : Int32) #

[View source]
def connect : Connection #

Establish a connection


[View source]
def host : String #

[View source]
def host=(host : String) #

[View source]
def port : Int32 #

[View source]
def port=(port : Int32) #

[View source]

[View source]
def tcp=(tcp : AMQP::Client::TCPConfig) #

[View source]
def tls : OpenSSL::SSL::Context::Client | Nil #

[View source]
def tls=(tls : OpenSSL::SSL::Context::Client | Nil) #

[View source]
def user : String #

[View source]
def user=(user : String) #

[View source]
def vhost : String #

[View source]
def vhost=(vhost : String) #

[View source]
def websocket : Bool #

[View source]
def websocket=(websocket : Bool) #

[View source]