ConfigProvider

zio.ConfigProvider$
See theConfigProvider companion trait

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

object Flat

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Flat.type
trait Flat

A simplified config provider that knows only how to deal with flat (key/value) properties. Because these providers are common, there is special support for implementing them.

A simplified config provider that knows only how to deal with flat (key/value) properties. Because these providers are common, there is special support for implementing them.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Value members

Concrete methods

def fromEnv(pathDelim: String, seqDelim: String): ConfigProvider

Constructs a ConfigProvider that loads configuration information from environment variables, using the default System service and the specified delimiter strings.

Constructs a ConfigProvider that loads configuration information from environment variables, using the default System service and the specified delimiter strings.

Attributes

Constructs a new ConfigProvider from a key/value (flat) provider, where nesting is embedded into the string keys.

Constructs a new ConfigProvider from a key/value (flat) provider, where nesting is embedded into the string keys.

Attributes

def fromMap(map: Map[String, String], pathDelim: String, seqDelim: String): ConfigProvider

Constructs a ConfigProvider using a map and the specified delimiter string, which determines how to split the keys in the map into path segments.

Constructs a ConfigProvider using a map and the specified delimiter string, which determines how to split the keys in the map into path segments.

Attributes

def fromProps(pathDelim: String, seqDelim: String): ConfigProvider

Constructs a ConfigProvider that loads configuration information from system properties, using the default System service and the specified delimiter strings.

Constructs a ConfigProvider that loads configuration information from system properties, using the default System service and the specified delimiter strings.

Attributes

Concrete fields

lazy val console: ZLayer[Any, Nothing, ConfigProvider]

A config provider layer that loads configuration from interactive console prompts, using the default Console service.

A config provider layer that loads configuration from interactive console prompts, using the default Console service.

Attributes

lazy val env: ZLayer[Any, Nothing, ConfigProvider]

A config provider layer that loads configuration from environment variables, using the default System service.

A config provider layer that loads configuration from environment variables, using the default System service.

Attributes

A config provider that loads configuration from environment variables, using the default System service.

A config provider that loads configuration from environment variables, using the default System service.

Attributes

lazy val props: ZLayer[Any, Nothing, ConfigProvider]

A config provider layer that loads configuration from system properties, using the default System service.

A config provider layer that loads configuration from system properties, using the default System service.

Attributes

A configuration provider that loads configuration from system properties, using the default System service.

A configuration provider that loads configuration from system properties, using the default System service.

Attributes

The tag that describes the ConfigProvider service.

The tag that describes the ConfigProvider service.

Attributes