feat: 🎉 Rating Orama!

This commit is contained in:
2023-04-09 06:45:27 +02:00
commit b2f4b573f3
61 changed files with 8130 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
package handlers
import (
"github.com/jackc/pgx/v5/pgxpool"
"github.com/zepyrshut/rating-orama/app"
"github.com/zepyrshut/rating-orama/repository"
)
type Repository struct {
DB repository.DBRepo
App *app.Application
}
var Repo *Repository
func NewRepo(db *pgxpool.Pool, app *app.Application) *Repository {
return &Repository{
DB: repository.NewPostgresRepo(db),
App: app,
}
}
func NewHandlers(r *Repository) {
Repo = r
}