GraphMine

graphmine-core / io.github.sof3.graphmine.config / CoreConfig

CoreConfig

class CoreConfig : ConfigSpec

Model for the server config.yml

Constructors

<init> CoreConfig(fn: CoreConfig.() -> Unit)
Model for the server config.yml

Properties

language var language: String
The default language to use
server val server: ServerConfig
Settings for the server

Inherited Functions

checkAll fun checkAll(): Unit
Validates the whole config
entry fun <T : Any> entry(validator: (T) -> String? = { null }): SimpleConfigEntry<T>
Declares a required entryfun <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

Companion Object Properties

VERSION const val VERSION: Int