Etcd::Client
Inherits Etcd::Stats < Etcd::Keys < Reference < Object
Constructors
Instance methods
api_execute(path : String, method : String, params : Options = Options.new, timeout : Int32 | Nil = nil) : HTTP::Client::Response
This method sends api request to etcd server.
This method has following parameters as argument
- path - etcd server path (etcd server end point)
- method - the request method used
- options - any additional parameters used by request method (optional)
config
Sourceconfig=(config : Config)
Sourcenew_client
This method returns a new client for a server from list It keeps an internal structure of healthy servers and picks one from the list Currently returns the first server