mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
16 lines
331 B
Go
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)))
|
|
}
|