Matrix-Chatfenster (read-only) im Dashboard integrieren

This commit is contained in:
Kai
2026-02-17 15:42:58 +01:00
parent 53d4052446
commit 234bd7e182
9 changed files with 207 additions and 2 deletions

View File

@@ -18,7 +18,8 @@ var monthNames = []string{
}
type App struct {
db *sql.DB
db *sql.DB
matrix *MatrixClient
}
func main() {
@@ -38,7 +39,10 @@ func main() {
log.Fatalf("schema setup failed: %v", err)
}
app := &App{db: db}
app := &App{
db: db,
matrix: newMatrixClientFromEnv(),
}
mux := http.NewServeMux()
mux.HandleFunc("/", app.handleDashboard)