NSQ.Config (elixir_nsq v1.2.0)
Summary
Functions
Given a config, tell us what's wrong with it. If nothing is wrong, we'll
return {:ok, config}
.
Functions
Link to this function
normalize(config)
Link to this function
normalize_hosts(hosts)
Link to this function
validate(config)
Given a config, tell us what's wrong with it. If nothing is wrong, we'll
return {:ok, config}
.
Examples
iex> NSQ.Config.validate(%NSQ.Config{})
{:ok, %NSQ.Config{}}
iex> NSQ.Config.validate(%NSQ.Config{max_attempts: -1})
{:error, ["max_attempts: -1 below minimum 0"]}