abstract struct CouchBase::Interfaces::Endpoint

Overview

Common contract for Couchbase endpoints. Subtypes add their own service/role metadata and stringification rules on top of this base.

ep = CouchBase::Endpoint.new("localhost", 11210, CouchBase::Service::KV, false)
ep.is_a?(CouchBase::Interfaces::Endpoint) # => true
ep.host                                   # => "localhost"
ep.port                                   # => 11210
ep.tls?                                   # => false

Direct Known Subclasses

Defined in:

couchbase/interfaces/endpoint.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

abstract def host : String #

[View source]
def initialize #

[View source]
abstract def port : Int32 #

[View source]
abstract def tls? : Bool #

[View source]