-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.go
53 lines (48 loc) · 877 Bytes
/
app.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
package main
import (
"app/adapter/casbin"
"app/adapter/casdoor"
"app/adapter/event"
"app/adapter/featureflags"
"app/adapter/health"
"app/adapter/http"
"app/adapter/logger"
"app/adapter/metrics"
"app/adapter/postgres"
"app/adapter/queue"
"app/adapter/redis"
"app/adapter/time"
"app/adapter/tracing"
"app/adapter/uuid"
"app/adapter/validation"
"app/authn/authn_http"
"app/config"
"app/internal/appcontext"
"app/kv"
"app/user/user_module"
"go.uber.org/fx"
)
func main() {
fx.New(
appcontext.Module,
config.Module,
logger.Module,
metrics.Module,
tracing.Module,
health.Module,
validation.Module,
featureflags.Module,
uuid.Module,
time.Module,
casbin.Module,
casdoor.Module,
event.Module,
queue.ClientModule,
postgres.Module,
redis.Module,
http.Module,
authn_http.Module,
user_module.Module,
kv.Module,
).Run()
}