Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckResult ¶
type CheckResult struct {
Name string `json:"name"`
Status string `json:"status"`
Error string `json:"error,omitempty"`
DurationMS int64 `json:"duration_ms"`
}
CheckResult reports a single check.
type Option ¶
type Option func(*Registry)
Option configures a Registry.
func WithTimeout ¶
WithTimeout sets a timeout for all checks.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry stores health and readiness checks.
func (*Registry) ReadyHandler ¶
ReadyHandler returns a handler for readiness checks.
func (*Registry) RemoveReady ¶
RemoveReady deletes a readiness check.
Click to show internal directories.
Click to hide internal directories.