EnvironmentVariable

sealed class EnvironmentVariable<T>

Delegated property for a environment variable.

See also

dev.schlaubi.envconf.EnvironmentVariable
ReadOnlyProperty

Parameters

prefix

the prefix for the variable

transform

a transformer to map the value to another type

default

an optional default value

T

the type of the (transformed) variable

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun getValue(thisRef: Any?, property: KProperty<*>): T
Link copied to clipboard
open fun optional(): EnvironmentVariable<T?>

Makes this variable optional.

Sources

Link copied to clipboard