package grilist import ( "database/sql" "fagott.pw/charakterin" "fagott.pw/grilist/frontend" "github.com/julienschmidt/httprouter" _ "github.com/lib/pq" ) // Grilist struct type Grilist struct { Config Config Renderer *frontend.Renderer Charakterin *charakterin.Charakterin DB *sql.DB Modules map[string]Module Router *httprouter.Router } // Module ist ein Modul für Grilist. type Module interface { Init(*Grilist) Name() string ProvideDashboardData(*charakterin.User) []DashboardCategory } // DashboardCategory ist eine Kategorie mit Karten, die auf dem Dashboard angezeigt werden. type DashboardCategory struct { Title string Cards []frontend.Card }