Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type State ¶
type State struct {
// contains filtered or unexported fields
}
State holds state about the current healthiness of the component.
func (*State) DrainHandler ¶ added in v0.5.0
func (h *State) DrainHandler() func(_ http.ResponseWriter, _ *http.Request)
DrainHandler constructs a handler that waits until the proxy server is shut down.
func (*State) HealthHandler ¶
HealthHandler constructs a handler that returns the current state of the health server.
func (*State) IsAlive ¶
IsAlive returns whether or not the health server is in a known working state currently.
func (*State) IsShuttingDown ¶
IsShuttingDown returns whether or not the health server is currently shutting down.
Click to show internal directories.
Click to hide internal directories.