class Consul::Status

Defined in:

consul/client/status.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_leader : String #

get_leader returns the Raft leader for the datacenter in which the agent is running


[View source]
def get_raft_peers(datacenter : String | Nil = nil) : Array(String) #

get_raft_peers retrieves the Raft peers for the datacenter in which the the agent is running


[View source]