Initial commit

This commit is contained in:
2026-03-05 11:21:18 +03:00
commit 056e2ad529
18 changed files with 729 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
package monitoring
import (
"go.uber.org/fx"
"payouts/internal/config"
)
// Module is a fx module
var Module = fx.Options(
fx.Provide(New),
)
// Params represents the module input params
type Params struct {
fx.In
AppConfig *config.App
}
// New instantiates the metrics service
func New(p Params) (Metrics, error) {
return NewMetrics(p.AppConfig.Metrics)
}