Package

zio.config

shapeless

Permalink

package shapeless

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. shapeless
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait DeriveConfigDescriptor extends AnyRef

    Permalink
  2. trait TypeName[T] extends AnyRef

    Permalink
  3. type describe = derivation.describe

    Permalink
  4. type name = derivation.name

    Permalink

Value Members

  1. object DeriveConfigDescriptor extends DeriveConfigDescriptor

    Permalink

    zio-config-shapeless is an alternative to zio-config-magnolia to support scala 2.11 projects.

    zio-config-shapeless is an alternative to zio-config-magnolia to support scala 2.11 projects. It will be deprecated once we find users have moved on from scala 2.11.

    DeriveConfigDescriptor.descriptor[Config] gives an automatic ConfigDescriptor for the case class Config recursively

    DeriveConfigDescriptor.descriptor[X] gives an automatic ConfigDescriptor for the sealed trait X (coproduct)

    // Given
    final case class Config(username: String, age: Int)
    
    // should work with no additional code
    val description = descriptor[Config]
    
    val config = Config.fromSystemEnv(description)

    Please find more (complex) examples in the examples module in zio-config

  2. object NonRecursiveDerivation extends DeriveConfigDescriptor

    Permalink

    Non-recursive derivation

  3. object TypeName

    Permalink
  4. val describe: derivation.describe.type

    Permalink
  5. val name: derivation.name.type

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped