KeyMapper

zio.blocks.config.KeyMapper
See theKeyMapper companion object
trait KeyMapper

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
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def fromCanonical(key: String, target: KeyFormat): String

Render a canonical lower-camel key into the requested target format.

Render a canonical lower-camel key into the requested target format.

Attributes

Source
KeyMapper.scala
def toCanonical(key: String): String

Normalize a source-facing key into canonical lower-camel form.

Normalize a source-facing key into canonical lower-camel form.

Attributes

Source
KeyMapper.scala