module Etcd

Overview

This module provides the Etcd:: name space for the gem and few factory methods for Etcd domain objects

Defined in:

etcd.cr
etcd/client.cr
etcd/config.cr
etcd/errors.cr
etcd/keys.cr
etcd/node.cr
etcd/options.cr
etcd/response.cr
etcd/stats.cr
etcd/version.cr

Constant Summary

ERROR_CODE_MAPPING = {100 => KeyNotFound, 101 => TestFailed, 102 => NotFile, 103 => NoMorePeer, 104 => NotDir, 105 => NodeExist, 106 => KeyIsPreserved, 108 => DirNotEmpty, 200 => ValueRequired, 201 => PrevValueRequired, 202 => TTLNaN, 203 => IndexNaN, 300 => RaftInternal, 301 => LeaderElect, 400 => WatcherCleared, 401 => EventIndexCleared}
VERSION = "0.4.0"

Class Method Summary

Class Method Detail

def self.client(addr : String = "localhost:2379") : Etcd::Client #

[View source]
def self.client(addr : String = "localhost:2379", &) : Etcd::Client #

[View source]
def self.client(addrs : Array(String)) : Etcd::Client #

[View source]
def self.client(addrs : Array(String), &) : Etcd::Client #

[View source]