class Consul::Coordinate
- Consul::Coordinate
- Consul::Transport
- Reference
- Object
Defined in:
consul/client/coordinate.crInstance Method Summary
-
#get_lan_coordinates : Array(Consul::Types::Coordinate::Lan)
get_lan_coordinates returns the LAN network coordinates for all nodes in a given datacenter
-
#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
-
#get_wan_coordinates : Array(Consul::Types::Coordinate::Wan)
get_wan_coordinates returns the WAN network coordinates for all Consul servers, organized by datacenters
-
#set_lan_coordinate(data)
set_lan_coordinate updates the LAN network coordinates for a node in a given datacenter
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::Responseput(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
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
def get_wan_coordinates : Array(Consul::Types::Coordinate::Wan)
#
get_wan_coordinates returns the WAN network coordinates for all Consul servers, organized by datacenters
def set_lan_coordinate(data)
#
set_lan_coordinate updates the LAN network coordinates for a node in a given datacenter