struct Crabbit::Broker

Overview

Broker address returned by RabbitMQ stream metadata.

reference is scoped to a metadata response and should not be persisted.

Defined in:

crabbit/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(reference : UInt16, host : String, port : Int32) #

[View source]

Instance Method Detail

def clone #

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

[View source]
def endpoint(tls : Bool = false) : Endpoint #

Converts the advertised broker address to an Endpoint.


[View source]
def host : String #

def port : Int32 #

def reference : UInt16 #