24 lines
570 B
Go
24 lines
570 B
Go
package initialize
|
|
|
|
import (
|
|
"context"
|
|
"github.com/minio/minio-go/v7"
|
|
"go.mongodb.org/mongo-driver/mongo"
|
|
"go.uber.org/zap"
|
|
"penahub.gitlab.yandexcloud.net/backend/verification/internal/repository"
|
|
)
|
|
|
|
type Repositories struct {
|
|
Verification *repository.VerificationRepository
|
|
}
|
|
|
|
func NewRepositories(
|
|
ctx context.Context,
|
|
logger *zap.Logger,
|
|
mongoDB *mongo.Database,
|
|
s3 *minio.Client, folder, url string) (*Repositories, error) {
|
|
reps := &Repositories{Verification: repository.NewVerificationRepository(logger, mongoDB, s3, folder, url)}
|
|
|
|
return reps, nil
|
|
}
|