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) 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.
func (*State) QuitHandler ¶
func (h *State) QuitHandler(cleaner func()) func(w http.ResponseWriter, r *http.Request)
QuitHandler constructs a handler that shuts the current server down. Optional cleanup logic can be added via the given cleaner function.
Click to show internal directories.
Click to hide internal directories.