ocr worker

This commit is contained in:
m
2026-07-12 14:35:30 +02:00
parent 911592758a
commit 67096c9482
6 changed files with 73 additions and 13 deletions
+4 -1
View File
@@ -27,9 +27,12 @@ func main() {
queries := db.New(database)
fileSvc := service.NewFileService(queries, cfg)
ocrSvc := service.NewOCRService(cfg)
ocrSvc := service.NewOCRService(cfg, fileSvc)
urlSvc := service.NewURLService(cfg.HMACSecret, cfg.ServerHost)
ocrSvc.Start()
defer ocrSvc.Stop()
h := handler.New(fileSvc, ocrSvc, urlSvc)
r := gin.Default()