// storaged is the object I/O service. D2 wires the actual S3 // GET/PUT/LIST routes; D1 just stands up the binary with /health. package main import ( "flag" "log/slog" "os" "git.agentview.dev/profit/golangLAKEHOUSE/internal/shared" "github.com/go-chi/chi/v5" ) func main() { configPath := flag.String("config", "lakehouse.toml", "path to TOML config") flag.Parse() cfg, err := shared.LoadConfig(*configPath) if err != nil { slog.Error("config", "err", err) os.Exit(1) } if err := shared.Run("storaged", cfg.Storaged.Bind, func(_ chi.Router) { // D2.4 wires GET/PUT/LIST routes here with localhost-only // bind, 256 MiB MaxBytesReader, and a 4-slot semaphore on // in-flight PUTs (per Qwen Q1 fix). }); err != nil { slog.Error("server", "err", err) os.Exit(1) } }