This repository has been archived by the owner on Jul 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init_app_do_not_edit.go
executable file
·65 lines (62 loc) · 2.22 KB
/
init_app_do_not_edit.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package typical
// Autogenerated by Typical-Go. DO NOT EDIT.
import (
"github.com/hotstone-seo/hotstone-seo/pkg/oauth2google"
"github.com/hotstone-seo/hotstone-seo/server/config"
"github.com/hotstone-seo/hotstone-seo/server/metric"
"github.com/hotstone-seo/hotstone-seo/server/repository"
"github.com/hotstone-seo/hotstone-seo/server/service"
"github.com/typical-go/typical-go/pkg/typapp"
"github.com/typical-go/typical-go/pkg/typcfg"
"github.com/typical-go/typical-rest-server/pkg/typpostgres"
"github.com/typical-go/typical-rest-server/pkg/typredis"
)
func init() {
typapp.AppendConstructor(
typapp.NewConstructor(metric.NewReportRepo),
typapp.NewConstructor(metric.NewRuleMatchingRepo),
typapp.NewConstructor(repository.NewAuditTrailRepo),
typapp.NewConstructor(repository.NewDataSourceRepo),
typapp.NewConstructor(repository.NewHistoryRepo),
typapp.NewConstructor(repository.NewRuleRepo),
typapp.NewConstructor(repository.NewTagRepo),
typapp.NewConstructor(repository.NewURLSyncRepo),
typapp.NewConstructor(service.NewAuditTrailService),
typapp.NewConstructor(service.NewCenterService),
typapp.NewConstructor(service.NewDataSourceService),
typapp.NewConstructor(service.NewHistoryService),
typapp.NewConstructor(service.NewMetricService),
typapp.NewConstructor(service.NewProviderService),
typapp.NewConstructor(service.NewRuleService),
typapp.NewConstructor(service.NewTagService),
typapp.NewConstructor(service.NewURLService),
typapp.NewConstructor(func() (cfg *config.Config, err error) {
cfg = new(config.Config)
if err = typcfg.Process("APP", cfg); err != nil {
return nil, err
}
return
}),
typapp.NewConstructor(func() (cfg *typredis.Config, err error) {
cfg = new(typredis.Config)
if err = typcfg.Process("REDIS", cfg); err != nil {
return nil, err
}
return
}),
typapp.NewConstructor(func() (cfg *typpostgres.Config, err error) {
cfg = new(typpostgres.Config)
if err = typcfg.Process("PG", cfg); err != nil {
return nil, err
}
return
}),
typapp.NewConstructor(func() (cfg *oauth2google.Config, err error) {
cfg = new(oauth2google.Config)
if err = typcfg.Process("OAUTH2_GOOGLE", cfg); err != nil {
return nil, err
}
return
}),
)
}