Peluquero.Utils (peluquero v0.99.43) View Source

Plain utilities for the project

Link to this section Summary

Link to this section Functions

Specs

consul_key_type(String.t()) :: {:plain | :nested, :bag | :item, String.t()}

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 macro

safe_method(name, id, param, list)

View Source (macro)
Link to this macro

safe_method(name, id, param1, param2, list)

View Source (macro)