Dmitri 4565a728a5
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 3m38s
dependecy injection uber to the win
2026-04-20 21:28:36 +02:00

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()
}