-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWire.go
42 lines (39 loc) · 1.19 KB
/
Wire.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
34
35
36
37
38
39
40
41
42
//go:build wireinject
package main
import (
"github.com/google/wire"
"github.com/komalreddy3/Attendance-go/api"
"github.com/komalreddy3/Attendance-go/api/dashboardApi"
"github.com/komalreddy3/Attendance-go/api/loginApi"
"github.com/komalreddy3/Attendance-go/api/principalApi"
"github.com/komalreddy3/Attendance-go/api/studentApi"
"github.com/komalreddy3/Attendance-go/api/teacherApi"
"github.com/komalreddy3/Attendance-go/pkg/attendance"
"github.com/komalreddy3/Attendance-go/pkg/dashboard"
Login "github.com/komalreddy3/Attendance-go/pkg/login"
"github.com/komalreddy3/Attendance-go/pkg/principal"
"github.com/komalreddy3/Attendance-go/pkg/student"
"github.com/komalreddy3/Attendance-go/pkg/teacher"
"github.com/komalreddy3/Attendance-go/pkg/user"
)
func InitializeEvent() (*App, error) {
wire.Build(
NewLogger,
NewDbConnection,
NewApp,
api.NewMuxRouterImpl, // func
dashboardApi.DashboardWire,
loginApi.LoginWire,
principalApi.PrincipalWire,
studentApi.StudentWire,
teacherApi.TeacherWire,
attendance.AttendanceWire,
dashboard.Dashboard2Wire,
Login.Login2Wire,
principal.Principal2Wire,
student.Student2Wire,
teacher.Teacher2Wire,
user.UserWire,
)
return &App{}, nil
}