struct Crabbit::Endpoint

Overview

Network address of a RabbitMQ Stream listener.

tls controls whether the connection uses TLS. The default plain-text port is 5552; use .tls for the conventional TLS port 5551.

Defined in:

crabbit/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(host : String, port : Int32 = 5552, tls : Bool = false) #

[View source]
def self.tls(host : String, port : Int32 = 5551) : self #

Creates a TLS endpoint for host and port.


[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(host _host = @host, port _port = @port, tls _tls = @tls) #

[View source]
def host : String #

def port : Int32 #

def tls : Bool #