YamlConfig

class YamlConfig constructor(yaml: YamlMap) : ApplicationConfig

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.

Constructors

Link copied to clipboard
constructor(yaml: YamlMap)

Functions

Link copied to clipboard
Link copied to clipboard
open override fun config(path: String): ApplicationConfig
Link copied to clipboard
open override fun configList(path: String): List<ApplicationConfig>
Link copied to clipboard
open override fun keys(): Set<String>
Link copied to clipboard
open override fun property(path: String): ApplicationConfigValue
Link copied to clipboard
open override fun propertyOrNull(path: String): ApplicationConfigValue?
Link copied to clipboard
open override fun toMap(): Map<String, Any?>