BackendConfigLoader

Loads and bootstraps backend-mod configuration.

Functions

Link copied to clipboard
fun ensureConfig(path: Path, defaultServerId: String): BackendConfigBootstrap

Ensures configuration exists at path. If missing, creates a new config using defaultServerId and a generated secret.

Link copied to clipboard
fun load(reader: Reader): BackendConfig

Loads configuration from a reader.

fun load(path: Path): BackendConfig

Loads configuration from path.