type
ReadinessCheck
One repeatable required-dependency readiness check.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The readiness deadline and cancellation context. |
Returns
Nil when ready or an error describing the unavailable dependency.
errorHow it works
Checks must be read-only, repeatable, and honor context cancellation. Add them through HandlerOptions.ReadinessChecks.
Full signature
type ReadinessCheck func(context.Context) error