-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwire_gen.go
33 lines (28 loc) · 1.49 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 -mod=mod github.com/google/wire/cmd/wire
//go:build !wireinject
// +build !wireinject
package main
import (
"github.com/Laeeqdev/AttendanceMangements/API/Auth"
"github.com/Laeeqdev/AttendanceMangements/API/Repository"
"github.com/Laeeqdev/AttendanceMangements/API/RestHandler"
"github.com/Laeeqdev/AttendanceMangements/API/Router"
"github.com/Laeeqdev/AttendanceMangements/API/Service"
"github.com/go-pg/pg"
)
// Injectors from wire.go:
func InitializeApp(db *pg.DB) *router.RouterImpl {
userRepositoryImpl := repository.NewUserRepositoryImpl(db)
userServiceImpl := service.NewUserServiceImpl(userRepositoryImpl)
userAuthHandlerImpl := auth.NewUserAuthHandlerImpl(userServiceImpl)
detailsRepositoryImpl := repository.NewDetailsRepositoryImpl(db)
getDeatilsServiceImpl := service.NewGetDeatilsServiceImpl(detailsRepositoryImpl, userRepositoryImpl)
detailsHandlerImpl := resthandler.NewDetailsHandlerImpl(getDeatilsServiceImpl, userAuthHandlerImpl)
principalHandlerImpl := resthandler.NewPrincipalHandlerImpl(userServiceImpl, userAuthHandlerImpl)
punchinRepositoryImpl := repository.NewPunchinRepositoryImpl(db)
punchinServiceImpl := service.NewPunchinServiceImpl(punchinRepositoryImpl)
punchInPunchOutHandlerImpl := resthandler.NewPunchInPunchOutHandlerImpl(punchinServiceImpl, userAuthHandlerImpl)
routerImpl := router.NewRouterImpl(userAuthHandlerImpl, detailsHandlerImpl, principalHandlerImpl, punchInPunchOutHandlerImpl)
return routerImpl
}