Module: Consul::Client

Defined in:
lib/consul/client.rb,
lib/consul/client/http.rb,
lib/consul/client/service.rb,
lib/consul/client/local_service.rb

Overview

Top-level client name space. All public entry points are via this module.

Defined Under Namespace

Classes: HTTP, LocalService, Service, V1

Constant Summary collapse

NULL_LOGGER =

Default logger that silences all diagnostic output.

Logger.new("/dev/null")
ResponseException =

Any non-successful response from Consul will result in this error being thrown.

Class.new(StandardError)

Class Method Summary collapse

Class Method Details

.v1Consul::Client::V1

Provides builders that support V1 of the Consul HTTP API.

Returns:



16
17
18
# File 'lib/consul/client.rb', line 16

def self.v1
  V1.new
end