zio.blocks.config.ConfigDecoder
See theConfigDecoder companion object
A typeclass for decoding a value of type A from a ConfigSource rooted at a given key prefix.
All errors are accumulated (not fail-fast) and returned as a non-empty list of ConfigError.
Attributes
- Companion
-
object
- Source
-
ConfigDecoder.scala
- Graph
-
- Supertypes
-
trait Matchable
class Any
Members list
Decode a value of type A from the given source, using prefix as the root path for key lookups (dot-separated, e.g. "db.host").
Decode a value of type A from the given source, using prefix as the root path for key lookups (dot-separated, e.g. "db.host").
Attributes
- Returns
-
Right(a) on success, Left(errors) with all accumulated errors on failure.
- Source
-
ConfigDecoder.scala