Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHealthCheckerFromFunc ¶
NewHealthCheckerFromFunc creates a new healthz.Checker from a function.
Types ¶
type CheckServer ¶
type CheckServer struct {
// contains filtered or unexported fields
}
CheckServer provides health checks for liveness probe (/healthz) and readiness probe (/readyz).
func NewHealthCheckServer ¶
func NewHealthCheckServer(healthzCheck, readyzChecker healthz.Checker) *CheckServer
NewHealthCheckServer creates a new HealthCheckServer.
func (*CheckServer) ServeHTTP ¶
func (s *CheckServer) ServeHTTP(rw http.ResponseWriter, req *http.Request)
ServeHTTP serves for liveness probe (/healthz) and readiness probe (/readyz).
Click to show internal directories.
Click to hide internal directories.