refactor(backend): layout canonique cmd/server + models/service/ocr/pkg + fix compilation héritée

This commit is contained in:
m
2026-09-10 07:10:31 +02:00
parent e7f304da0a
commit 837bfa8a12
15 changed files with 59 additions and 48 deletions
+10
View File
@@ -0,0 +1,10 @@
package ocr
import "context"
// Engine extracts text from a document (image or PDF) located at filePath.
// The V1 implementation is a Tesseract system call (OCR_LANG, défaut fra+eng);
// swapping to a remote service later only changes the injection point.
type Engine interface {
ExtractText(ctx context.Context, filePath string, lang string) (string, error)
}