Package-level declarations

Types

Link copied to clipboard
open class Config(prefix: String = "")

Helper class that allows you to specify a prefix for your whole config.

Link copied to clipboard

Object to access Environment variables.

Link copied to clipboard

Delegated property for a environment variable.

Functions

Link copied to clipboard
fun getEnv(prefix: String? = null, default: String? = null): EnvironmentVariable<String>

Returns a delegated environment variable prefixed by prefix that fallbacks to default if the found variable is empty or invalid

fun <T> getEnv(prefix: String? = null, default: T? = null, transform: (String) -> T?): EnvironmentVariable<T>

Returns a delegated environment variable prefixed by prefix that fallbacks to default if the found variable is empty or invalid.

Properties

Link copied to clipboard

Shortcut to make API usable like this