// ingestd is the data on-ramp — CSV → Parquet, schema inference, // auto-registration with catalogd. D4 wires the actual ingest route. 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("ingestd", cfg.Ingestd.Bind, func(_ chi.Router) { // D4.3 wires: // POST /ingest (multipart form file → schema infer → write // Parquet via storaged → register via catalogd) }); err != nil { slog.Error("server", "err", err) os.Exit(1) } }