ConfigProvider

A ConfigProvider is a service that provides configuration given a description of the structure of that configuration.

Companion:
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def load[A](config: Config[A])(implicit trace: Trace): IO[Error, A]

Loads the specified configuration, or fails with a config error.

Loads the specified configuration, or fails with a config error.

Concrete methods

Flattens this config provider into a simplified config provider that knows only how to deal with flat (key/value) properties.

Flattens this config provider into a simplified config provider that knows only how to deal with flat (key/value) properties.

final def nested(name: String): ConfigProvider

Returns a new config provider that will automatically nest all configuration under the specified property name. This can be utilized to aggregate separate configuration sources that are all required to load a single configuration value.

Returns a new config provider that will automatically nest all configuration under the specified property name. This can be utilized to aggregate separate configuration sources that are all required to load a single configuration value.

Returns a new config provider that preferentially loads configuration data from this one, but which will fall back to the specified alterate provider if there are any issues loading the configuration from this provider.

Returns a new config provider that preferentially loads configuration data from this one, but which will fall back to the specified alterate provider if there are any issues loading the configuration from this provider.