All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 3m38s
26 lines
522 B
Go
26 lines
522 B
Go
package main
|
|
|
|
import (
|
|
"git.kanopo.dev/rhythm/rhythm-backend/internal/config"
|
|
"git.kanopo.dev/rhythm/rhythm-backend/internal/db"
|
|
"git.kanopo.dev/rhythm/rhythm-backend/internal/http"
|
|
"git.kanopo.dev/rhythm/rhythm-backend/internal/http/api/health"
|
|
"git.kanopo.dev/rhythm/rhythm-backend/internal/logger"
|
|
"go.uber.org/fx"
|
|
)
|
|
|
|
func main() {
|
|
fx.New(
|
|
fx.Provide(
|
|
config.Provide,
|
|
logger.NewFromConfig,
|
|
db.ProvidePool,
|
|
http.NewServer,
|
|
health.NewHandler,
|
|
),
|
|
fx.Invoke(
|
|
http.GlueRoutes,
|
|
),
|
|
).Run()
|
|
}
|