abstract struct CryBase::Interfaces::Endpoint

Overview

Common contract every database-specific endpoint in CryBase must satisfy. Subtypes add their own service/role metadata and stringification rules on top of this base.

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

Direct Known Subclasses

Defined in:

crybase/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]