mirror of
https://github.com/matrix-org/dendrite.git
synced 2024-12-02 03:01:57 -06:00
20 lines
471 B
Go
20 lines
471 B
Go
|
package config
|
||
|
|
||
|
type MSCs struct {
|
||
|
Matrix *Global `yaml:"-"`
|
||
|
|
||
|
// The MSCs to enable, currently only `msc2836` is supported.
|
||
|
MSCs []string `yaml:"mscs"`
|
||
|
|
||
|
Database DatabaseOptions `yaml:"database"`
|
||
|
}
|
||
|
|
||
|
func (c *MSCs) Defaults() {
|
||
|
c.Database.Defaults()
|
||
|
c.Database.ConnectionString = "file:mscs.db"
|
||
|
}
|
||
|
|
||
|
func (c *MSCs) Verify(configErrs *ConfigErrors, isMonolith bool) {
|
||
|
checkNotEmpty(configErrs, "mscs.database.connection_string", string(c.Database.ConnectionString))
|
||
|
}
|