Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | //go:build wireinject |
||
4 | package internal |
||
5 | |||
6 | import ( |
||
7 | "github.com/google/wire" |
||
8 | "github.com/memnix/memnix-rest/app/http/controllers" |
||
9 | "github.com/memnix/memnix-rest/infrastructures" |
||
10 | "github.com/memnix/memnix-rest/internal/auth" |
||
11 | "github.com/memnix/memnix-rest/internal/kliento" |
||
12 | "github.com/memnix/memnix-rest/internal/user" |
||
13 | ) |
||
14 | |||
15 | func InitializeKliento() controllers.KlientoController { |
||
16 | wire.Build(controllers.NewKlientoController, kliento.NewUseCase, kliento.NewRedisRepository, infrastructures.GetRedisClient) |
||
17 | return controllers.KlientoController{} |
||
18 | } |
||
19 | |||
20 | func InitializeUser() controllers.UserController { |
||
21 | wire.Build(controllers.NewUserController, user.NewUseCase, user.NewRepository, infrastructures.GetDBConn) |
||
22 | return controllers.UserController{} |
||
23 | } |
||
24 | |||
25 | func InitializeAuth() controllers.AuthController { |
||
26 | wire.Build(controllers.NewAuthController, auth.NewUseCase, user.NewRepository, infrastructures.GetDBConn) |
||
27 | return controllers.AuthController{} |
||
28 | } |
||
29 |