~bigbes/lethe

ref: 3c45b48bd5d0d99f76d2063504adaa7b312b85bc lethe/internal/domain/ingest/handler.go -rw-r--r-- 719 bytes
3c45b48b — Eugene Blikh feat(http): chi server with middleware stack + RFC 7807 problem renderer a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Phase-5 stub. Replaced by real implementation in Phase 7.
//
// Mount is a no-op so the /api/v1 group registers no ingest routes yet;
// Server.Init still wires it in so the full router topology compiles.
package ingest

import (
	"context"

	"github.com/go-chi/chi/v5"
)

// Handler is a no-op steward service. Phase 7 supplies the real ingest
// pipeline (NDJSON streaming, validation, chunked commit).
type Handler struct{}

// Init satisfies the steward Service contract.
func (h *Handler) Init(_ context.Context) error { return nil }

// Mount registers no routes. Phase 7 replaces this with the ingest endpoints
// rooted at the /api/v1 group passed in by Server.Init.
func (h *Handler) Mount(_ chi.Router) {}