Config

zio.Config$
See theConfig companion trait
object Config

Attributes

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

Members list

Concise view

Type members

Classlikes

case object Bool extends Primitive[Boolean]

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type
Bool.type
sealed trait Composite[+A] extends Config[A]

Attributes

Graph
Supertypes
trait Config[A]
class Object
trait Matchable
class Any
Known subtypes
class Described[A]
class Fallback[A]
class FallbackWith[A]
class Optional[A]
class Lazy[A]
class MapOrFail[A, B]
class Nested[A]
class Sequence[A]
class Table[V]
class Zipped[A, B, C]
final case class Constant[A](value: A) extends Primitive[A]

Attributes

Graph
Supertypes
trait Product
trait Equals
trait Primitive[A]
trait Config[A]
class Object
trait Matchable
class Any
case object Decimal extends Primitive[BigDecimal]

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type
Decimal.type
final case class Described[A](config: Config[A], description: String) extends Composite[A]

Attributes

Graph
Supertypes
trait Product
trait Equals
trait Composite[A]
trait Config[A]
class Object
trait Matchable
class Any
case object Duration extends Primitive[Duration]

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type
object Error

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Error.type
sealed trait Error extends Exception with NoStackTrace

The possible ways that loading configuration data may fail.

The possible ways that loading configuration data may fail.

Attributes

Companion:
object
Graph
Supertypes
class Exception
class Throwable
class Object
trait Matchable
class Any
Known subtypes
Self type
final case class Fail(message: String) extends Primitive[Nothing]

Attributes

Graph
Supertypes
trait Product
trait Equals
trait Primitive[Nothing]
trait Config[Nothing]
class Object
trait Matchable
class Any
sealed class Fallback[A] extends Composite[A] with Product with Serializable

Attributes

Companion:
object
Graph
Supertypes
trait Product
trait Equals
trait Composite[A]
trait Config[A]
class Object
trait Matchable
class Any
Known subtypes
class FallbackWith[A]
class Optional[A]
Self type
object Fallback

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
final case class FallbackWith[A](first: Config[A], second: Config[A], f: Error => Boolean) extends Fallback[A]

Attributes

Graph
Supertypes
class Fallback[A]
trait Product
trait Equals
trait Composite[A]
trait Config[A]
class Object
trait Matchable
class Any
case object Integer extends Primitive[BigInt]

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Product
trait Equals
trait Config[BigInt]
class Object
trait Matchable
class Any
Self type
Integer.type
final case class Lazy[A](thunk: () => Config[A]) extends Composite[A]

Attributes

Graph
Supertypes
trait Product
trait Equals
trait Composite[A]
trait Config[A]
class Object
trait Matchable
class Any
case object LocalDate extends Primitive[LocalDate]

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type
case object LocalTime extends Primitive[LocalTime]

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type
final case class MapOrFail[A, B](original: Config[A], mapOrFail: A => Either[Error, B]) extends Composite[B]

Attributes

Graph
Supertypes
trait Product
trait Equals
trait Composite[B]
trait Config[B]
class Object
trait Matchable
class Any
final case class Nested[A](name: String, config: Config[A]) extends Composite[A]

Attributes

Graph
Supertypes
trait Product
trait Equals
trait Composite[A]
trait Config[A]
class Object
trait Matchable
class Any

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type
final case class Optional[A](config: Config[A]) extends Fallback[Option[A]]

Attributes

Graph
Supertypes
class Fallback[Option[A]]
trait Product
trait Equals
trait Composite[Option[A]]
trait Config[Option[A]]
class Object
trait Matchable
class Any
final class OrElse[+A](self: Config[A], condition: Error => Boolean)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
sealed trait Primitive[+A] extends Config[A]

Attributes

Graph
Supertypes
trait Config[A]
class Object
trait Matchable
class Any
Known subtypes
object Bool.type
class Constant[A]
object Decimal.type
object Duration.type
class Fail
object Integer.type
object LocalDate.type
object LocalDateTime.type
object LocalTime.type
object OffsetDateTime.type
object SecretType.type
object Text.type
Self type
final class Secret

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
object Secret extends Chunk[Char] => Secret

Attributes

Companion:
class
Graph
Supertypes
trait Chunk[Char] => Secret
class Object
trait Matchable
class Any
Self type
Secret.type
case object SecretType extends Primitive[Secret]

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Product
trait Equals
trait Config[Secret]
class Object
trait Matchable
class Any
Self type
final case class Sequence[A](config: Config[A]) extends Composite[Chunk[A]]

Attributes

Graph
Supertypes
trait Product
trait Equals
trait Composite[Chunk[A]]
trait Config[Chunk[A]]
class Object
trait Matchable
class Any
final case class Table[V](valueConfig: Config[V]) extends Composite[Map[String, V]]

Attributes

Graph
Supertypes
trait Product
trait Equals
trait Composite[Map[String, V]]
trait Config[Map[String, V]]
class Object
trait Matchable
class Any
case object Text extends Primitive[String]

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Product
trait Equals
trait Config[String]
class Object
trait Matchable
class Any
Self type
Text.type
final case class Zipped[A, B, C](left: Config[A], right: Config[B], zippable: Out[A, B, C]) extends Composite[C]

Attributes

Graph
Supertypes
trait Product
trait Equals
trait Composite[C]
trait Config[C]
class Object
trait Matchable
class Any

Value members

Concrete methods

def bigInt(name: String): Config[BigInt]
def chunkOf[A](config: Config[A]): Config[Chunk[A]]
def chunkOf[A](name: String, config: Config[A]): Config[Chunk[A]]
def defer[A](config: => Config[A]): Config[A]
def double(name: String): Config[Double]
def fail(error: => String): Config[Nothing]
def float(name: String): Config[Float]
def int: Config[Int]
def int(name: String): Config[Int]
def listOf[A](config: Config[A]): Config[List[A]]
def listOf[A](name: String, config: Config[A]): Config[List[A]]
def secret(name: String): Config[Secret]
def setOf[A](config: Config[A]): Config[Set[A]]
def setOf[A](name: String, config: Config[A]): Config[Set[A]]
def string(name: String): Config[String]
def succeed[A](value: => A): Config[A]
def table[V](value: Config[V]): Config[Map[String, V]]
def table[V](name: String, value: Config[V]): Config[Map[String, V]]
def uri: Config[URI]
def uri(name: String): Config[URI]
def vectorOf[A](config: Config[A]): Config[Vector[A]]
def vectorOf[A](name: String, config: Config[A]): Config[Vector[A]]