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

Type members

Classlikes

case object Bool extends Primitive[Boolean]

Attributes

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

Attributes

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 Switch[A, B]
class Table[V]
class Zipped[A, B, C]
Show all
final case class Constant[A](value: A) extends Primitive[A]

Attributes

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

Attributes

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

Attributes

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

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Config[Duration]
class Object
trait Matchable
class Any
Show all
Self type
Duration.type
object Error

Attributes

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

The possible ways that loading configuration data may fail.

The possible ways that loading configuration data may fail.

Attributes

Companion
object
Supertypes
trait NoStackTrace
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes
class And
class InvalidData
class MissingData
class Or
class Unsupported
Show all
Self type
final case class Fail(message: String) extends Primitive[Nothing]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Primitive[Nothing]
trait Config[Nothing]
class Object
trait Matchable
class Any
Show all
sealed class Fallback[A] extends Composite[A], Product, Serializable

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Config[LocalDate]
class Object
trait Matchable
class Any
Show all
Self type
LocalDate.type
case object LocalDateTime extends Primitive[LocalDateTime]

Attributes

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

Attributes

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

Attributes

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

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Composite[A]
trait Config[A]
class Object
trait Matchable
class Any
Show all
case object OffsetDateTime extends Primitive[OffsetDateTime]

Attributes

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

Attributes

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

Attributes

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

Attributes

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
Show all
Self type
final class Secret

Attributes

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

Attributes

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

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Primitive[Secret]
trait Config[Secret]
class Object
trait Matchable
class Any
Show all
Self type
SecretType.type
final case class Sequence[A](config: Config[A]) extends Composite[Chunk[A]]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Composite[Chunk[A]]
trait Config[Chunk[A]]
class Object
trait Matchable
class Any
Show all
final case class Switch[A, B](config: Config[A], map: Map[A, Config[B]]) extends Composite[B]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Composite[B]
trait Config[B]
class Object
trait Matchable
class Any
Show all
final case class Table[V](valueConfig: Config[V]) extends Composite[Map[String, V]]

Attributes

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

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Primitive[String]
trait Config[String]
class Object
trait Matchable
class Any
Show all
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

Supertypes
trait Serializable
trait Product
trait Equals
trait Composite[C]
trait Config[C]
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def bigInt(name: String): Config[BigInt]
def boolean(name: String): Config[Boolean]
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 long: Config[Long]
def long(name: String): Config[Long]
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]]