// WithCheck adds a new health check that contributes to the overall service availability status.
// This check will be triggered each time Checker.Check is called (i.e., for each HTTP request).
// If health checks are expensive or you expect a bigger amount of requests on your the health endpoint,
// consider using WithPeriodicCheck instead.
WithCheck adds a new health check that contributes to the overall service availability status.
This check will be triggered each time Checker.Check is called .
If health checks are expensive or you expect a bigger amount of requests on your the health endpoint,
consider using WithPeriodicCheck instead.
// WithCheck adds a new health check that contributes to the overall service availability status . // This check will be triggered each time Checker . Check is called ( i . e . for each HTTP request ) . // If health checks are expensive or you expect a bigger amount of requests on your the health endpoint // consider using WithPeriodicCheck instead .
func WithCheck(check Check) CheckerOption {
	return func(cfg *checkerConfig) {
		cfg.checks[check.Name] = &check
	}
}
func WithCheck ( check Check ) CheckerOption { return func ( cfg * checkerConfig ) { cfg . checks [ check . Name ] = & check } }
WithCheck adds a new health check that contributes to the overall service availability status.
WithCheck adds a new health check that contributes to the overall service availability status .