Config

io.eezo.config.Config
See theConfig companion trait
object Config

Attributes

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

Members list

Type members

Classlikes

final case class Leaf(field: String, parser: Parser[Any], default: Option[() => Any], optional: Boolean, redacted: Boolean) extends Slot

A field read from one value through its Parser.

A field read from one value through its Parser.

Attributes

Source
Config.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Slot
class Object
trait Matchable
class Any
Show all
final case class Name(variable: String, path: String, redacted: Boolean, need: Need)

One variable, beside the path it feeds. redacted is decided from the field's type, so that whatever lists these never shows a Redacted value, nor asks for one to be typed in the clear.

One variable, beside the path it feeds. redacted is decided from the field's type, so that whatever lists these never shows a Redacted value, nor asks for one to be typed in the clear.

Attributes

Source
Config.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
enum Need

What an operator has to know about one variable before setting it.

What an operator has to know about one variable before setting it.

Attributes

Source
Config.scala
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
enum Offender

One reason the case class was not built, named by its path. It holds the path, the variable and the Parser's reason and never the text found, so that printing one, or a Refused, cannot leak what the file or the environment holds.

One reason the case class was not built, named by its path. It holds the path, the variable and the Parser's reason and never the text found, so that printing one, or a Refused, cannot leak what the file or the environment holds.

Attributes

Source
Config.scala
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class Refused(offenders: Seq[Offender])

Every offender at once, a variable the framework reserves first and then the fields' in declaration order, because a deployment fixed one value per restart is a deployment fixed slowly.

Every offender at once, a variable the framework reserves first and then the fields' in declaration order, because a deployment fixed one value per restart is a deployment fixed slowly.

A value rather than an exception: following ADR 0006, the Either is answered where it is returned, as a Form's is, and the boot that reads a Config decides how a refusal stops it.

Attributes

Source
Config.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final class Root[A](val config: Config[A])

The class the application reads, checked against the file at compile time where the build writes the root into the generated unit.

The class the application reads, checked against the file at compile time where the build writes the root into the generated unit.

Attributes

Companion
object
Source
Config.scala
Supertypes
class Object
trait Matchable
class Any
object Root

Attributes

Companion
class
Source
Config.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Root.type
final case class Section(field: String, config: Config[Any]) extends Slot

A field whose type derives Config itself, read from the object under the field's name.

A field whose type derives Config itself, read from the object under the field's name.

Attributes

Source
Config.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Slot
class Object
trait Matchable
class Any
Show all
sealed trait Slot

What the macro learns of one field. Public types, because the code derives Config expands to is compiled in the application's package, where nothing private to this one is visible.

What the macro learns of one field. Public types, because the code derives Config expands to is compiled in the application's package, where nothing private to this one is visible.

Attributes

Source
Config.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Leaf
class Section

Value members

Concrete methods

def apply[A](using config: Config[A]): Config[A]

Attributes

Source
Config.scala
inline def checked[A](inline path: String)(using c: Config[A]): Root[A]

The root the generated unit writes: the class checked at compile time against the file at path, so a required value the file never mentions fails the build and not the boot.

The root the generated unit writes: the class checked at compile time against the file at path, so a required value the file never mentions fails the build and not the boot.

Attributes

Source
Config.scala
inline def derived[A](using m: ProductOf[A]): Config[A]

inline only long enough for the macro to read the fields, then straight into make, which is compiled once, so no anonymous class is copied to every derives site.

inline only long enough for the macro to read the fields, then straight into make, which is compiled once, so no anonymous class is copied to every derives site.

Attributes

Source
Config.scala
inline def root[A](using c: Config[A]): Root[A]

The root with no file to check against: what a suite or a project without the plugin writes. It still walks the whole tree of sections, so a section type at two paths is refused here too.

The root with no file to check against: what a suite or a project without the plugin writes. It still walks the whole tree of sections, so a section type at two paths is refused here too.

Attributes

Source
Config.scala