← ZIO Config docs

zio.config

package zio.config

Members list

Type members

Classlikes

case object BuildInfo

This object was generated by sbt-buildinfo.

This object was generated by sbt-buildinfo.

Attributes

Source
BuildInfo.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
BuildInfo.type

Attributes

Source
ConfigDocsModule.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Source
TupleConversion.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object IndexedFlat

Attributes

Companion
trait
Source
IndexedFlat.scala
Supertypes
class Object
trait Matchable
class Any
Self type
trait IndexedFlat extends Flat

Attributes

Companion
object
Source
IndexedFlat.scala
Supertypes
trait Flat
class Object
trait Matchable
class Any
final implicit class Interpolator(sc: StringContext) extends AnyVal

Attributes

Source
package.scala
Supertypes
class AnyVal
trait Matchable
class Any
trait TupleConversion[A, B]

Attributes

Companion
object
Source
TupleConversion.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
trait
Source
TupleConversion.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Inherited classlikes

implicit class ChunkOps[A](chunk: Chunk[A])

Attributes

Inherited from:
ConfigSyntax
Source
ConfigSyntax.scala
Supertypes
class Object
trait Matchable
class Any
sealed trait ConfigDocs

ConfigDocs holds the descriptions and details of a Config which can be used to produce documentation.

ConfigDocs holds the descriptions and details of a Config which can be used to produce documentation.

Attributes

Inherited from:
ConfigDocsModule
Source
ConfigDocsModule.scala
Supertypes
class Object
trait Matchable
class Any
implicit class ConfigErrorOps(error: Error)

Attributes

Inherited from:
ConfigSyntax
Source
ConfigSyntax.scala
Supertypes
class Object
trait Matchable
class Any
implicit class ConfigOps[A](config: Config[A])

Attributes

Inherited from:
ConfigSyntax
Source
ConfigSyntax.scala
Supertypes
class Object
trait Matchable
class Any
implicit class FromConfigOps(c: Config.type)

Attributes

Inherited from:
ConfigSyntax
Source
ConfigSyntax.scala
Supertypes
class Object
trait Matchable
class Any
implicit class FromConfigProviderOps(c: ConfigProvider.type)

Attributes

Inherited from:
ConfigSyntax
Source
ConfigSyntax.scala
Supertypes
class Object
trait Matchable
class Any
sealed case class Table(rows: List[TableRow])

A Table is a recursive structure that is more easier to be interpreted as Json or Markdown than trying to convert ConfigDocs to a readable format.

A Table is a recursive structure that is more easier to be interpreted as Json or Markdown than trying to convert ConfigDocs to a readable format.

Value parameters

rows:

A table consist of multiple TableRows where each TableRow holds the information about the config path.

Attributes

Inherited from:
ConfigDocsModule
Source
ConfigDocsModule.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Table

Attributes

Inherited from:
ConfigDocsModule
Source
ConfigDocsModule.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any

Value members

Inherited methods

def addPostFixToKey(string: String): String => String

Add a post fix to an existing key

Add a post fix to an existing key

Attributes

Inherited from:
KeyConversionFunctions (hidden)
Source
KeyConversionFunctions.scala
def addPrefixToKey(prefix: String): String => String

Add a prefix to an existing key

Add a prefix to an existing key

Attributes

Inherited from:
KeyConversionFunctions (hidden)
Source
KeyConversionFunctions.scala
def camelToDelimiter(input: String, delimiter: String): String

Convert camelCase to any delimited string. Example:

Convert camelCase to any delimited string. Example:

 camelToDelimiter("abcDef", "-") === abc-def

Attributes

Inherited from:
KeyConversionFunctions (hidden)
Source
KeyConversionFunctions.scala
final def generateDocs[A](config: Config[A]): ConfigDocs

Generate documentation based on the Config, where a Config is a structure representing the logic to fetch the application config from various sources.

Generate documentation based on the Config, where a Config is a structure representing the logic to fetch the application config from various sources.

Once we generate the docs, this can be converted to a light weight Table structure which is much more easier to be converted to markdown or json formats.

Example :

 val configDescriptor: Config[MyAppConfig] = ???

 generatedDocs(configDescriptor).toTable.toGithubFlavouredMarkdown

Attributes

Inherited from:
ConfigDocsModule
Source
ConfigDocsModule.scala
final def read[A](reader: ReadZIO[A]): IO[Error, A]

Attributes

Inherited from:
ConfigSyntax
Source
ConfigSyntax.scala

Inherited fields

Convert a camelCase key to kebab-case val s = abcDef toKebabCase(s) === abc-def

Convert a camelCase key to kebab-case val s = abcDef toKebabCase(s) === abc-def

This version handles numeric boundaries properly:

  • "myValue123" -> "my-value-123"
  • "QAndA" -> "q-and-a"

Attributes

Inherited from:
KeyConversionFunctions (hidden)
Source
KeyConversionFunctions.scala

Legacy kebab-case conversion that only handles lowercase-uppercase boundaries. Use this for backward compatibility with configs created before zio-config 4.0.5.

Legacy kebab-case conversion that only handles lowercase-uppercase boundaries. Use this for backward compatibility with configs created before zio-config 4.0.5.

Example:

  • "myValue123" -> "my-value123" (numbers not separated)
  • "QAndA" -> "qand-a" (consecutive capitals not separated)

Attributes

Inherited from:
KeyConversionFunctions (hidden)
Source
KeyConversionFunctions.scala

Convert a camelCase key to snake_case

Convert a camelCase key to snake_case

Attributes

Inherited from:
KeyConversionFunctions (hidden)
Source
KeyConversionFunctions.scala

Givens

Inherited givens

given autoTupleConversion: [Prod <: Product] => ProductOf[Prod] => TupleConversion[Prod, m.MirroredElemTypes]

Attributes

Inherited from:
ImplicitTupleConversion
Source
TupleConversion.scala
inline given autoTupleConversion1: [Prod <: Product, A] => TupleConversion[Prod, Tuple1[A]] => autoTupleConversion1[Prod, A]

Attributes

Inherited from:
ImplicitTupleConversion
Source
TupleConversion.scala

Implicits

Implicits

final implicit def Interpolator(sc: StringContext): Interpolator

Attributes

Source
package.scala

Inherited implicits

final implicit def ChunkOps[A](chunk: Chunk[A]): ChunkOps[A]

Attributes

Inherited from:
ConfigSyntax
Source
ConfigSyntax.scala
final implicit def ConfigErrorOps(error: Error): ConfigErrorOps

Attributes

Inherited from:
ConfigSyntax
Source
ConfigSyntax.scala
final implicit def ConfigOps[A](config: Config[A]): ConfigOps[A]

Attributes

Inherited from:
ConfigSyntax
Source
ConfigSyntax.scala
final implicit def FromConfigOps(c: Config.type): FromConfigOps

Attributes

Inherited from:
ConfigSyntax
Source
ConfigSyntax.scala

Attributes

Inherited from:
ConfigSyntax
Source
ConfigSyntax.scala