watchyourlan/cmd/WatchYourLAN/main.go
2022-12-25 23:15:12 +07:00

21 lines
450 B
Go

package main
import (
"fmt"
"github.com/aceberg/WatchYourLAN/internal/conf"
"github.com/aceberg/WatchYourLAN/internal/db"
"github.com/aceberg/WatchYourLAN/internal/web"
)
const configPath = "/data/config"
func main() {
appConfig := conf.Get(configPath) // Get config from Defaults, Config file, Env
fmt.Println("CONF =", appConfig)
db.Create(appConfig.DbPath) // Check if DB exists. Create if not
web.Gui(appConfig) // Start web GUI
}