YtPotion.Config (yt_potion v1.0.0)

Copy Markdown

Runtime lookup for yt_potion's configuration.

Configuration is read lazily on each call rather than checked at compile or application-load time, so a misconfigured app boots fine and only fails the specific call that needs the missing config.

Summary

Functions

config()

@spec config() :: {:ok, keyword()} | {:error, :not_configured}

config(key)

@spec config(atom()) :: {:ok, term()} | {:error, :not_configured | :key_not_found}