MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / init

Function init

module/service/module.go:76–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74}
75
76func init() {
77 serviceModule := new(imlServiceModule)
78 autowire.Auto[IServiceModule](func() reflect.Value {
79 gateway.RegisterInitHandleFunc(serviceModule.initGateway)
80 return reflect.ValueOf(serviceModule)
81 })
82
83 autowire.Auto[IExportServiceModule](func() reflect.Value {
84 return reflect.ValueOf(serviceModule)
85 })
86
87 appModule := new(imlAppModule)
88 autowire.Auto[IAppModule](func() reflect.Value {
89 return reflect.ValueOf(appModule)
90 })
91
92 autowire.Auto[IExportAppModule](func() reflect.Value {
93 return reflect.ValueOf(appModule)
94 })
95
96 serviceDocModule := new(imlServiceDocModule)
97 autowire.Auto[IServiceDocModule](func() reflect.Value {
98 return reflect.ValueOf(serviceDocModule)
99 })
100
101 filter := new(imlAppFilter)
102 autowire.Autowired(filter)
103 strategy_filter.RegisterRemoteFilter(filter)
104
105}

Callers

nothing calls this directly

Calls 2

RegisterInitHandleFuncFunction · 0.92
RegisterRemoteFilterMethod · 0.80

Tested by

no test coverage detected