25 lines
385 B
Go
25 lines
385 B
Go
package infra
|
|
|
|
import (
|
|
"go.uber.org/fx"
|
|
|
|
"epic-ent/internal/infra/cache"
|
|
"epic-ent/internal/infra/cron"
|
|
"epic-ent/internal/infra/db"
|
|
"epic-ent/internal/infra/http"
|
|
infraLog "epic-ent/internal/infra/log"
|
|
)
|
|
|
|
var Module = fx.Options(
|
|
fx.Provide(
|
|
infraLog.NewLogger,
|
|
db.NewMySQL,
|
|
cache.NewRedis,
|
|
http.NewEcho,
|
|
),
|
|
fx.Invoke(
|
|
cron.RegisterJobs,
|
|
http.StartServer,
|
|
),
|
|
)
|