-
Notifications
You must be signed in to change notification settings - Fork 298
Expand file tree
/
Copy pathwire_gen.go
More file actions
39 lines (33 loc) · 863 Bytes
/
wire_gen.go
File metadata and controls
39 lines (33 loc) · 863 Bytes
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
// 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/go-training/example49-dependency-injection/config"
)
import (
_ "github.com/joho/godotenv/autoload"
)
// Injectors from wire.go:
func InitializeApplication(cfg config.Config) (*application, error) {
service, err := provideCache(cfg)
if err != nil {
return nil, err
}
ldapService, err := provideLDAP(cfg, service)
if err != nil {
return nil, err
}
crowdService, err := provideCROWD(cfg, service)
if err != nil {
return nil, err
}
userService, err := provideUser(ldapService, crowdService, service)
if err != nil {
return nil, err
}
handler := provideRouter(cfg, userService)
mainApplication := newApplication(handler, userService)
return mainApplication, nil
}