graphmine-core / io.github.sof3.graphmine.config / CoreConfig
class CoreConfig : ConfigSpec
Model for the server config.yml
| <init> | CoreConfig(fn: CoreConfig.() -> Unit)Model for the server config.yml |
| language | var language: StringThe default language to use |
| server | val server: ServerConfigSettings for the server |
| checkAll | fun checkAll(): UnitValidates the whole config |
| entry | fun <T : Any> entry(validator: (T) -> String? = { null }): SimpleConfigEntry<T>Declares a required entry fun <T : Any> entry(default: T, validator: (T) -> String? = { null }): SimpleConfigEntry<T>Declares an entry with a default value |
| group | fun <G : ConfigGroupSpec<G>> group(group: G): GroupDelegate<G>Config groups should be included by delegation to this call |
| VERSION | const val VERSION: Int |