Files

16 lines
331 B
Go

package health
import "go.uber.org/fx"
const HealthCheckKey = `group:"_healthCheck"`
func ProvideHealthCheck(provider any) fx.Option {
return fx.Provide(
fx.Annotate(provider, fx.ResultTags(HealthCheckKey)),
)
}
func Module() fx.Option {
return fx.Provide(fx.Annotate(NewHealthController, fx.ParamTags(HealthCheckKey)))
}