Initial database setup including migrations
This commit is contained in:
@@ -13,6 +13,8 @@ type appservice struct {
|
||||
|
||||
Bot bot `yaml:"bot"`
|
||||
|
||||
Database database `yaml:"database"`
|
||||
|
||||
ASToken string `yaml:"as_token"`
|
||||
HSToken string `yaml:"hs_token"`
|
||||
}
|
||||
@@ -34,6 +36,10 @@ func (a *appservice) validate() error {
|
||||
a.Port = 29350
|
||||
}
|
||||
|
||||
if err := a.Database.validate(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := a.Bot.validate(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user