A zio.Config describes the structure of some configuration data.
Attributes
- Companion
- object
- Graph
-
- Supertypes
- Known subtypes
-
trait Composite[A]class Described[A]class Fallback[A]class FallbackWith[A]class Optional[A]class Lazy[A]class Nested[A]class Sequence[A]class Table[V]trait Primitive[A]object Bool.typeclass Constant[A]object Decimal.typeobject Duration.typeclass Failobject Integer.typeobject LocalDate.typeobject LocalDateTime.typeobject LocalTime.typeobject OffsetDateTime.typeobject SecretType.typeobject Text.typeShow all
- Self type
-
Config[A]
Members list
Value members
Concrete methods
Returns a new config that is the composition of this config and the specified config.
Returns a new config that is the composition of this config and the specified config.
Attributes
Adds a description to this configuration, which is intended for humans.
Adds a description to this configuration, which is intended for humans.
Attributes
Returns a new config whose structure is the same as this one, but which produces a different Scala value, constructed using the specified function.
Returns a new config whose structure is the same as this one, but which produces a different Scala value, constructed using the specified function.
Attributes
Returns a new config whose structure is the same as this one, but which may produce a different Scala value, constructed using the specified function, which may throw exceptions that will be translated into validation errors.
Returns a new config whose structure is the same as this one, but which may produce a different Scala value, constructed using the specified function, which may throw exceptions that will be translated into validation errors.
Attributes
Returns a new config whose structure is the same as this one, but which may produce a different Scala value, constructed using the specified fallible function.
Returns a new config whose structure is the same as this one, but which may produce a different Scala value, constructed using the specified fallible function.
Attributes
Returns a new config that has this configuration nested as a property of the specified name.
Returns a new config that has this configuration nested as a property of the specified name.
Attributes
Returns a new config that has this configuration nested as a property of the specified name.
Returns a new config that has this configuration nested as a property of the specified name.
Attributes
Returns an optional version of this config, which will be None
if the data is missing from configuration, and Some
otherwise.
Returns an optional version of this config, which will be None
if the data is missing from configuration, and Some
otherwise.
Attributes
A named version of ||
.
A named version of ||
.
Attributes
Returns configuration which reads from this configuration, but which falls back to the specified configuration if reading from this configuration fails with an error satisfying the specified predicate.
Returns configuration which reads from this configuration, but which falls back to the specified configuration if reading from this configuration fails with an error satisfying the specified predicate.
Attributes
Returns a new config that describes a sequence of values, each of which has the structure of this config.
Returns a new config that describes a sequence of values, each of which has the structure of this config.
Attributes
Returns a new configuration which reads from this configuration and uses the resulting value to determine the configuration to read from.
Returns a new configuration which reads from this configuration and uses the resulting value to determine the configuration to read from.
Attributes
Returns a new config that describes the same structure as this one, but which performs validation during loading.
Returns a new config that describes the same structure as this one, but which performs validation during loading.
Attributes
Returns a new config whose structure is the same as this one, but which may produce a different Scala value, constructed using the specified partial function, failing with the specified validation error if the partial function is not defined.
Returns a new config whose structure is the same as this one, but which may produce a different Scala value, constructed using the specified partial function, failing with the specified validation error if the partial function is not defined.
Attributes
Returns a new config that describes the same structure as this one, but has the specified default value in case the information cannot be found.
Returns a new config that describes the same structure as this one, but has the specified default value in case the information cannot be found.
Attributes
A named version of ++
.
A named version of ++
.
Attributes
Returns a new configuration that is the composition of this configuration and the specified configuration, combining their values using the function f
.
Returns a new configuration that is the composition of this configuration and the specified configuration, combining their values using the function f
.
Attributes
Returns a config whose structure is preferentially described by this config, but which falls back to the specified config if there is an issue reading from this config.
Returns a config whose structure is preferentially described by this config, but which falls back to the specified config if there is an issue reading from this config.