chore: add qe and integrations with rabbit mq

This commit is contained in:
d3m0k1d
2026-04-29 14:26:59 +03:00
parent fe740da06b
commit d3a2fe0f9c
18 changed files with 1823 additions and 47 deletions
+13 -3
View File
@@ -2,20 +2,30 @@ package handlers
import (
"github.com/gin-gonic/gin"
"github.com/jackc/pgx/v5/pgxpool"
"gitea.d3m0k1d.ru/d3m0k1d/rostpoliplast/backend/internal/mq"
"gitea.d3m0k1d.ru/d3m0k1d/rostpoliplast/backend/internal/storage"
)
type Handlers struct {
DB *pgxpool.Pool
Repo *storage.Repository
MQ *mq.RabbitMQ
}
func (h *Handlers) RegisterRoutes(r *gin.RouterGroup) {
baleHandlers := &BaleHandlers{
DB: h.DB,
Repo: h.Repo,
MQ: h.MQ,
}
baleHandlers.RegisterRoutes(r)
baleTypeHandlers := &BaleTypeHandlers{
Repo: h.Repo,
}
baleTypeHandlers.RegisterRoutes(r)
queueHandlers := &QueueHandlers{
MQ: h.MQ,
}
queueHandlers.RegisterRoutes(r)
}