peluquero v0.7.1 Peluquero.Utils
Plain utilities for the project
Link to this section Summary
Functions
Quick check for the consul key
Link to this section Functions
Link to this function
consul(root, path)
Link to this function
consul_key_type(key)
consul_key_type(String.t()) :: {:plain | :nested, :bag | :item}
Quick check for the consul key.
## Examples
iex> Peluquero.Utils.consul_key_type("a/b/c/")
{:nested, :bag, "a"}
iex> Peluquero.Utils.consul_key_type("a/b/c")
{:nested, :item, "a"}
iex> Peluquero.Utils.consul_key_type("a/")
{:plain, :bag, "a"}
iex> Peluquero.Utils.consul_key_type("a")
{:plain, :item, "a"}
Link to this function
safe(value)