package model import "github.com/jmoiron/sqlx" type ( DBConfig struct { Host string `toml:"host"` Port int64 `toml:"port"` Name string `toml:"name"` User string `toml:"user"` Pass string `toml:"pass"` } DiscordConfig struct { AdminID string `toml:"admin_id" comment:"NOTE: admin_id to be deprecated in favour of local accounts and SSO."` ClientID string `toml:"client_id"` Secret string `toml:"secret"` } Config struct { BaseUrl string `toml:"base_url" comment:"Used for OAuth redirects."` Port int64 `toml:"port"` DataDirectory string `toml:"data_dir"` DB DBConfig `toml:"db"` Discord DiscordConfig `toml:"discord"` } AppState struct { DB *sqlx.DB Config Config } )