ConfigDecoder

zio.blocks.config.ConfigDecoder
See theConfigDecoder companion object
trait ConfigDecoder[A]

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
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def decode(source: ConfigSource, prefix: String): Either[::[ConfigError], A]

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