module CouchBase::Services

Overview

Namespace for protocol-level implementations of individual Couchbase services. The cluster-level CouchBase::Client only validates TCP reachability; types under Services speak each service's actual wire protocol.

Currently implemented:

require "couchbase"

CouchBase::Services.list.size # => 8

endpoint = CouchBase::Endpoint.new(
  "node1", 11210, CouchBase::Service::KV, false
)
kv = CouchBase::Services::KV::Client.new(
  endpoint, "user", "pass", "default"
)

Defined in:

couchbase/services.cr

Class Method Summary

Class Method Detail

def self.list : Array(Service) #

Returns every member of the CouchBase::Service enum, in the canonical order used when building the per-host endpoint matrix.

CouchBase::Services.list
# => [Service::KV, Service::Query, Service::Search, Service::Analytics,
#     Service::Index, Service::Eventing, Service::Views, Service::Management]

[View source]