-
Notifications
You must be signed in to change notification settings - Fork 4
/
wire_gen.go
29 lines (24 loc) · 960 Bytes
/
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
// 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/andybeak/hexagonal-demo/helpers"
"github.com/andybeak/hexagonal-demo/internal/core/usecases"
"github.com/andybeak/hexagonal-demo/internal/handlers"
"github.com/andybeak/hexagonal-demo/internal/repositories"
)
// Injectors from wire.go:
func InitializeApp() *App {
httpServiceParams := handlers.ProvideHttpServiceParams()
databaseParameters := helpers.ProvideDatabaseParameters()
db := helpers.ProvideDatabase(databaseParameters)
userRepository := adapters.ProvideUserRepository(db)
userUseCase := usecases.ProvideUserUseCase(userRepository)
userHttpHandler := handlers.ProvideUserHttpHandler(userUseCase)
router := handlers.ProvideRouter(userHttpHandler)
httpService := handlers.ProvideHttpService(httpServiceParams, router)
app := ProvideApp(httpService)
return app
}