MCPcopy
hub / github.com/grafana/dskit / NewHealthCheckFrom

Function NewHealthCheckFrom

grpcutil/health_check.go:55–59  ·  view source on GitHub ↗

NewHealthCheckFrom returns a new HealthCheck that uses each of the provided Checks.

(checks ...Check)

Source from the content-addressed store, hash-verified

53
54// NewHealthCheckFrom returns a new HealthCheck that uses each of the provided Checks.
55func NewHealthCheckFrom(checks ...Check) *HealthCheck {
56 return &HealthCheck{
57 checks: checks,
58 }
59}
60
61// Check implements the grpc healthcheck.
62func (h *HealthCheck) Check(ctx context.Context, _ *grpc_health_v1.HealthCheckRequest) (*grpc_health_v1.HealthCheckResponse, error) {

Calls

no outgoing calls