This commit is contained in:
XenGi 2025-08-23 18:36:47 +02:00
parent 7180ddcfbc
commit fd4eb5b3e8
Signed by: xengi
SSH key fingerprint: SHA256:jxWM2RTHvxxcncXycwwWkP7HCWb4VREN05UGJTbIPZg
18 changed files with 195 additions and 272 deletions

View file

@ -1,24 +1,29 @@
package main
import (
"fmt"
"github.com/labstack/echo-contrib/echoprometheus"
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
"gopkg.in/ini.v1"
"net/http"
"os"
"os/exec"
"embed"
"fmt"
"net/http"
"os"
"os/exec"
"github.com/labstack/echo-contrib/echoprometheus"
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
"gopkg.in/ini.v1"
)
// Config holds the configuration for the mpd connection and for the web server.
//go:embed static/*
var staticFS embed.FS
// Config holds the configuration for the mpd backend connection and for the web server.
type Config struct {
MPD struct {
BACKEND struct {
Hostname string `ini:"hostname"`
Port int `ini:"port"`
Username string `ini:"username"`
Password string `ini:"password"`
} `ini:"mpd"`
} `ini:"backend"`
UI struct {
Hostname string `ini:"hostname"`
Port int `ini:"port"`