Initial database setup including migrations

This commit is contained in:
Gary Kramlich
2021-12-09 05:37:41 -06:00
parent be3982e585
commit 78ab3d3804
10 changed files with 203 additions and 4 deletions

View File

@@ -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
}