ReqManagedAgents.Config (ReqManagedAgents v0.6.2)

Copy Markdown View Source

The single resolution point for library configuration. Every value follows the same priority: an explicit opts keyword, then Application.get_env(:req_managed_agents, key), then a System.get_env environment variable, then a default. Callers never read env directly — so the whole config surface is one grep for Config.resolve away.

Summary

Functions

resolve(opts, key, env_var \\ nil, default \\ nil)

@spec resolve(keyword(), atom(), String.t() | nil, term()) :: term()

resolve!(opts, key, env_var)

@spec resolve!(keyword(), atom(), String.t()) :: term()