...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package apiserver
17
18 import (
19 "go.uber.org/fx"
20
21 "github.com/chaos-mesh/chaos-mesh/pkg/dashboard/apiserver/archive"
22 "github.com/chaos-mesh/chaos-mesh/pkg/dashboard/apiserver/auth/gcp"
23 "github.com/chaos-mesh/chaos-mesh/pkg/dashboard/apiserver/common"
24 "github.com/chaos-mesh/chaos-mesh/pkg/dashboard/apiserver/event"
25 "github.com/chaos-mesh/chaos-mesh/pkg/dashboard/apiserver/experiment"
26 "github.com/chaos-mesh/chaos-mesh/pkg/dashboard/apiserver/schedule"
27 "github.com/chaos-mesh/chaos-mesh/pkg/dashboard/apiserver/template"
28 "github.com/chaos-mesh/chaos-mesh/pkg/dashboard/apiserver/workflow"
29 )
30
31 var handlerModule = fx.Options(
32 fx.Provide(
33 common.NewService,
34 experiment.Bootstrap,
35 schedule.Bootstrap,
36 workflow.Bootstrap,
37 event.NewService,
38 archive.NewService,
39 gcp.NewService,
40 template.Bootstrap,
41 ),
42 fx.Invoke(
43
44 gcp.Register,
45 common.Register,
46 experiment.Register,
47 schedule.Register,
48 workflow.Register,
49 event.Register,
50 archive.Register,
51 template.Register,
52 ),
53 )
54