← Back to Kairo Docs|API Reference (Dokka)

ConfigResolver

class ConfigResolver(val prefix: String, val resolve: suspend (raw: String) -> String?)

Config resolvers let you dynamically resolve config string values. String values that start with prefix will be mapped through resolve.

Resolvers run after HOCON loading. They match string values by prefix and replace the entire value with the resolver's result. If the resolver returns null, the original value (with prefix stripped) is used.

Constructors

Link copied to clipboard
constructor(prefix: String, resolve: suspend (raw: String) -> String?)

Properties

Link copied to clipboard
Link copied to clipboard
val resolve: suspend (raw: String) -> String?