Lamina.Provider.init

You're seeing just the callback init, go back to Lamina.Provider module for more information.

Specs

init(keyword()) ::
  {:ok, state()} | {:ok, state(), refresh_period} | {:error, any()}
when refresh_period: pos_integer()

Called by Lamina when initialising a configuration provider.

If you're implementing a configuration provider, then this is your opportunity to do any setup work before any configuration is requested.

When returning successfully, it is possible to include a refresh_period option, which indicates how often (in milliseconds) to refresh the configuration values of this provider. This can be used by providers such as Lamina.Provider.Env which represent volatile data, but have no way of detecting change other than polling.