CobaltConfig

com.worxbend.cobalt.CobaltConfig
See theCobaltConfig companion class
object CobaltConfig

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def load(source: ConfigSource = ...): Either[ConfigReaderFailures, CobaltConfig]

Loads from the ambient config, returning failures rather than throwing.

Loads from the ambient config, returning failures rather than throwing.

Whether an unusable configuration is fatal is the composition root's call (Main does abort); keeping the failure as a value lets a test assert on a bad configuration without killing the JVM.

Attributes

Concrete fields

val Namespace: String

The config namespace.

The config namespace.

Attributes

Givens

Givens

given authReader: ConfigReader[AuthConfig]

Written out rather than derived for the same reason wolfram's is: AuthConfig is the one section with optional fields, and a derived reader would turn a missing secret into a parse error instead of the boot failure JwtVerifier.from produces with a sentence naming the field.

Written out rather than derived for the same reason wolfram's is: AuthConfig is the one section with optional fields, and a derived reader would turn a missing secret into a parse error instead of the boot failure JwtVerifier.from produces with a sentence naming the field.

Attributes

given reader: ConfigReader[CobaltConfig]