class Consul::Coordinate

Defined in:

consul/client/coordinate.cr

Instance Method Summary

Instance methods inherited from class Consul::Transport

client : HTTP::Client client, consistency : String consistency, delete(path : String) : HTTP::Client::Response delete, get(path : String) : HTTP::Client::Response get, get_consistency : String get_consistency, put(path : String, data : JSON::Any) : HTTP::Client::Response
put(path : String, data : String) : HTTP::Client::Response
put(path : String) : HTTP::Client::Response
put

Constructor methods inherited from class Consul::Transport

new(client : HTTP::Client, consistency : String = "default") new

Instance Method Detail

def get_lan_coordinates : Array(Consul::Types::Coordinate::Lan) #

get_lan_coordinates returns the LAN network coordinates for all nodes in a given datacenter


[View source]
def get_node_lan_coordinates(node : String) : Array(Consul::Types::Coordinate::Lan) #

get_lan_coordinates with node returns the LAN network coordinates for the given node


[View source]
def get_wan_coordinates : Array(Consul::Types::Coordinate::Wan) #

get_wan_coordinates returns the WAN network coordinates for all Consul servers, organized by datacenters


[View source]
def set_lan_coordinate(data) #

set_lan_coordinate updates the LAN network coordinates for a node in a given datacenter


[View source]