Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckerFunc ¶
type HealthChecker ¶
type HealthChecker struct {
// contains filtered or unexported fields
}
func NewHealthChecker ¶
func NewHealthChecker(serverType string) *HealthChecker
func (*HealthChecker) AddHealthCheck ¶
func (h *HealthChecker) AddHealthCheck(name string, f Checker)
func (*HealthChecker) LivenessHandler ¶
func (h *HealthChecker) LivenessHandler() http.Handler
func (*HealthChecker) ReadinessHandler ¶
func (h *HealthChecker) ReadinessHandler() http.Handler
func (*HealthChecker) RegisterShutdownFunction ¶
func (h *HealthChecker) RegisterShutdownFunction(f ShutDownFunc)
func (*HealthChecker) WaitForGracefulShutdown ¶
func (h *HealthChecker) WaitForGracefulShutdown()
type ShutDownFunc ¶
Click to show internal directories.
Click to hide internal directories.