zio.blocks.config
Members list
Packages
Type members
Classlikes
This object was generated by sbt-buildinfo.
This object was generated by sbt-buildinfo.
Attributes
- Source
- BuildInfo.scala
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
- Self type
-
BuildInfo.type
Entry point for loading typed configuration from a ConfigSource.
Entry point for loading typed configuration from a ConfigSource.
Attributes
- Source
- Config.scala
- Supertypes
- Self type
-
Config.type
A typeclass for decoding a value of type A from a ConfigSource rooted at a given key prefix.
A typeclass for decoding a value of type A from a ConfigSource rooted at a given key prefix.
All errors are accumulated (not fail-fast) and returned as a non-empty list of ConfigError.
Attributes
- Companion
- object
- Source
- ConfigDecoder.scala
- Supertypes
Attributes
- Companion
- trait
- Source
- ConfigDecoder.scala
- Supertypes
- Self type
-
ConfigDecoder.type
Attributes
- Companion
- class
- Source
- ConfigDecoderDeriver.scala
- Supertypes
- Self type
-
ConfigDecoderDeriver.type
Attributes
- Companion
- object
- Source
- ConfigDecoderDeriver.scala
- Supertypes
- Known subtypes
-
object ConfigDecoderDeriver
Category: error during schema-driven config derivation.
Category: error during schema-driven config derivation.
Attributes
- Source
- ConfigError.scala
- Supertypes
-
trait ConfigErrortrait NoStackTraceclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class MissingDiscriminatorKeyclass UnknownDiscriminator
Attributes
- Companion
- trait
- Source
- ConfigError.scala
- Supertypes
- Self type
-
ConfigError.type
Base type for all configuration errors.
Base type for all configuration errors.
Errors are partitioned into category traits for structured matching:
- ConfigParseError — value could not be parsed into the expected type
- ConfigValidationError — value parsed but failed semantic validation
- ConfigSourceError — problem with the configuration source itself
- ConfigDerivationError — error during schema-driven config derivation
Attributes
- Companion
- object
- Source
- ConfigError.scala
- Supertypes
-
trait NoStackTraceclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait ConfigDerivationErrorclass MissingDiscriminatorKeyclass UnknownDiscriminatorclass Compositetrait ConfigParseErrorclass InvalidValueclass ParseErrortrait ConfigSourceErrorclass DuplicateKeyclass MissingKeyclass Unauthorizedtrait ConfigValidationErrorShow all
Exception thrown by Config.loadOrThrow when configuration loading fails.
Exception thrown by Config.loadOrThrow when configuration loading fails.
Carries both the formatted multi-line report shown to users and the original non-empty list of accumulated ConfigErrors for programmatic inspection.
Attributes
- Source
- Config.scala
- Supertypes
-
class RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Category: value could not be parsed into the expected type.
Category: value could not be parsed into the expected type.
Attributes
- Source
- ConfigError.scala
- Supertypes
-
trait ConfigErrortrait NoStackTraceclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class InvalidValueclass ParseError
A source of configuration key-value pairs.
A source of configuration key-value pairs.
Attributes
- Companion
- object
- Source
- ConfigSource.scala
- Supertypes
- Known subtypes
Attributes
- Companion
- trait
- Source
- ConfigSource.scala
- Supertypes
- Self type
-
ConfigSource.type
Category: problem with the configuration source (missing key, unauthorized, duplicate).
Category: problem with the configuration source (missing key, unauthorized, duplicate).
Attributes
- Source
- ConfigError.scala
- Supertypes
-
trait ConfigErrortrait NoStackTraceclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
Category: value was parsed but failed semantic validation.
Category: value was parsed but failed semantic validation.
Attributes
- Source
- ConfigError.scala
- Supertypes
-
trait ConfigErrortrait NoStackTraceclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Source
- Displayable.scala
- Supertypes
Attributes
- Companion
- trait
- Source
- Displayable.scala
- Supertypes
- Self type
-
Displayable.type
Attributes
- Source
- Displayable.scala
- Supertypes
- Known subtypes
-
object Displayable
A flag whose value is determined by a rollout expression that can be updated at runtime.
A flag whose value is determined by a rollout expression that can be updated at runtime.
Each call to apply evaluates the rollout expression against the provided key/attributes and tracks evaluation counters. Use evaluate for evaluation without counter tracking.
Intended to be extended by Scala object definitions:
object MyFeature extends DynamicFlag[Boolean](false, "true@beta/50%; false")
Resolution order for initial expression: FlagSource → system property → env variable → constructor default.
Attributes
- Companion
- object
- Source
- DynamicFlag.scala
- Supertypes
Attributes
- Companion
- class
- Source
- DynamicFlag.scala
- Supertypes
- Self type
-
DynamicFlag.type
Config source backed by environment variables (JVM). Key lookup converts dots to underscores and uppercases: db.host → DB_HOST. A null env var is treated as absent (None). An empty string "" is present (Some).
Config source backed by environment variables (JVM). Key lookup converts dots to underscores and uppercases: db.host → DB_HOST. A null env var is treated as absent (None). An empty string "" is present (Some).
Attributes
- Source
- PlatformConfigSource.scala
- Supertypes
- Self type
-
EnvSource.type
Attributes
- Companion
- trait
- Source
- FlagReader.scala
- Supertypes
- Self type
-
Flag.type
Global registry and diagnostics helpers for resolved flags.
Global registry and diagnostics helpers for resolved flags.
Attributes
- Companion
- object
- Source
- FlagReader.scala
- Supertypes
- Known subtypes
-
object Flag
Base class for all flag-related exceptions.
Base class for all flag-related exceptions.
Extends scala.util.control.NoStackTrace so that instances are lightweight and do not capture a stack trace, which is appropriate for flag resolution errors that are diagnosed at startup rather than during request handling.
Concrete subtypes live in FlagException companion:
- FlagException.FlagValueParseException — flag value could not be parsed
- FlagException.FlagNameException — flag name is structurally invalid
- FlagException.FlagDuplicateNameException — flag name already registered
- FlagException.FlagExpressionParseException — rollout expression is malformed
Attributes
- Companion
- object
- Source
- FlagException.scala
- Supertypes
-
trait NoStackTraceclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class FlagNameExceptionclass FlagValueParseException
Attributes
- Companion
- class
- Source
- FlagException.scala
- Supertypes
- Self type
-
FlagException.type
A scalar source of flag values.
A scalar source of flag values.
Attributes
- Companion
- object
- Source
- FlagSource.scala
- Supertypes
- Known subtypes
Attributes
- Companion
- trait
- Source
- FlagSource.scala
- Supertypes
- Self type
-
FlagSource.type
Attributes
- Companion
- trait
- Source
- KeyFormat.scala
- Supertypes
- Self type
-
KeyFormat.type
Supported output formats for source-facing configuration keys.
Supported output formats for source-facing configuration keys.
Attributes
- Companion
- object
- Source
- KeyFormat.scala
- Supertypes
- Known subtypes
Maps source-specific configuration keys to the canonical lower-camel form used by config decoders and wrapper sources, and back again.
Maps source-specific configuration keys to the canonical lower-camel form used by config decoders and wrapper sources, and back again.
For example, a mapper may treat databaseUrl, database_url, and database-url as the same logical key.
Attributes
- Companion
- object
- Source
- KeyMapper.scala
- Supertypes
Attributes
- Companion
- trait
- Source
- KeyMapper.scala
- Supertypes
- Self type
-
KeyMapper.type
Describes where a resolved configuration or flag value came from.
Describes where a resolved configuration or flag value came from.
Attributes
- Companion
- object
- Source
- Provenance.scala
- Supertypes
- Known subtypes
Attributes
- Companion
- trait
- Source
- Provenance.scala
- Supertypes
- Self type
-
Provenance.type
A decoded configuration value paired with the ConfigSource that produced it, allowing per-key provenance queries.
A decoded configuration value paired with the ConfigSource that produced it, allowing per-key provenance queries.
Attributes
- Source
- ProvenanceMap.scala
- Supertypes
Rollout DSL for selecting values based on path-matching and percentage bucketing.
Rollout DSL for selecting values based on path-matching and percentage bucketing.
Grammar:
expression = choice { ";" choice }
choice = value "@" selector | value
selector = path [ "/" percentage ]
path = segment { "/" segment }
segment = "*" | literal
percentage = digits "%"
Left-to-right evaluation, first match wins. A bare value (no @) is a catch-all and should appear last; later entries are unreachable.
Attributes
- Source
- Rollout.scala
- Supertypes
- Self type
-
Rollout.type
Attributes
- Companion
- object
- Source
- Secret.scala
- Supertypes
Attributes
- Companion
- class
- Source
- Secret.scala
- Supertypes
- Self type
-
Secret.type
Attributes
- Source
- SourceValue.scala
- Supertypes
A flag whose value is resolved exactly once at class-load time and never changes.
A flag whose value is resolved exactly once at class-load time and never changes.
Intended to be extended by Scala object definitions:
object MyFlag extends StaticFlag[Int](42)
Resolution order: FlagSource registry → system property → environment variable → default. Throws at class load on parse/validation failure (fail-fast).
Attributes
- Companion
- object
- Source
- StaticFlag.scala
- Supertypes
Attributes
- Companion
- class
- Source
- StaticFlag.scala
- Supertypes
- Self type
-
StaticFlag.type
Config source backed by JVM system properties. Key lookup uses the dot-separated path directly.
Config source backed by JVM system properties. Key lookup uses the dot-separated path directly.
Attributes
- Source
- PlatformConfigSource.scala
- Supertypes
- Self type
-
SysPropSource.type
Implicits
Implicits
Attributes
- Source
- package.scala