feat: add supervisor prototype with embedded frontend

This commit is contained in:
root
2026-03-09 19:15:53 +01:00
parent 96c4ce1697
commit 84de557052
56 changed files with 4044 additions and 10 deletions

12
internal/util/ids.go Normal file
View File

@ -0,0 +1,12 @@
package util
import (
"crypto/rand"
"encoding/hex"
)
func NewID(prefix string) string {
buf := make([]byte, 8)
_, _ = rand.Read(buf)
return prefix + "_" + hex.EncodeToString(buf)
}

10
internal/util/logger.go Normal file
View File

@ -0,0 +1,10 @@
package util
import (
"log"
"os"
)
func NewLogger() *log.Logger {
return log.New(os.Stdout, "[supervisor] ", log.LstdFlags|log.Lmicroseconds)
}