morz-infoboard/player/agent/internal/app/app.go
2026-03-22 13:42:00 +01:00

28 lines
382 B
Go

package app
import (
"fmt"
"time"
"git.az-it.net/az/morz-infoboard/player/agent/internal/config"
)
type App struct {
Config config.Config
}
func New() (*App, error) {
cfg := config.Load()
if cfg.ScreenID == "" {
return nil, fmt.Errorf("screen id is required")
}
return &App{Config: cfg}, nil
}
func (a *App) Run() error {
for {
time.Sleep(30 * time.Second)
}
}