Package-level declarations

Types

Link copied to clipboard

Implements ApplicationConfig by loading a configuration from a YAML file. Values can reference to environment variables with $ENV_VAR or "$ENV_VAR:default_value" syntax.

Link copied to clipboard

Loads ApplicationConfig from a YAML file.

Functions

Link copied to clipboard
expect fun YamlConfig(path: String?): YamlConfig?

Loads a configuration from the YAML file, if found. On JVM, loads a configuration from application resources, if exists; otherwise, reads a configuration from a file. On Native, always reads a configuration from a file.

actual fun YamlConfig(path: String?): YamlConfig?

Loads a configuration from the YAML file, if found. On JVM, loads a configuration from application resources, if exist; otherwise, reads a configuration from a file. On Native, always reads a configuration from a file.

actual fun YamlConfig(path: String?): YamlConfig?

Loads a configuration from the YAML file, if found. On JVM, loads a configuration from application resources, if exist; otherwise, reads a configuration from a file. On Native, always reads a configuration from a file.