ex_nsq v1.1.0 NSQ.Config
Link to this section Summary
Functions
Given a config, tell us what’s wrong with it. If nothing is wrong, we’ll
return {:ok, config}
Link to this section 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"]}