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