-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwire_gen.go
33 lines (28 loc) · 1.36 KB
/
wire_gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Code generated by Wire. DO NOT EDIT.
//go:generate go run github.com/google/wire/cmd/wire
//go:build !wireinject
// +build !wireinject
package main
import (
"github.com/kafugen/ocwcentral/env"
"github.com/kafugen/ocwcentral/graph"
"github.com/kafugen/ocwcentral/interactor"
"github.com/kafugen/ocwcentral/persistence"
)
// Injectors from wire.go:
func InitializeResolver() graph.Resolver {
envConfig := env.NewEnvConfig()
db := persistence.NewDB(envConfig)
subjectRepositoryImpl := persistence.NewSubjectRepositoryImpl(db)
videoRepositoryImpl := persistence.NewVideoRepositoryImpl(db)
subjectInteractor := interactor.NewSubjectInteractor(subjectRepositoryImpl, videoRepositoryImpl)
videoInteractor := interactor.NewVideoInteractor(videoRepositoryImpl)
resourceRepositoryImpl := persistence.NewResourceRepositoryImpl(db)
resourceInteractor := interactor.NewResourceInteractor(resourceRepositoryImpl)
syllabusRepositoryImpl := persistence.NewSyllabusRepositoryImpl(db)
syllabusInteractor := interactor.NewSyllabusInteractor(syllabusRepositoryImpl)
academicFieldRepositoryImpl := persistence.NewAcademicFieldRepositoryImpl(db)
academicFieldInteractor := interactor.NewAcademicFieldInteractor(academicFieldRepositoryImpl)
resolver := graph.NewResolver(subjectInteractor, videoInteractor, resourceInteractor, syllabusInteractor, academicFieldInteractor)
return resolver
}