Documentation ¶
Overview ¶
Package handlers contains a specific handlers
Index ¶
- func GetMessageHTML(w http.ResponseWriter, r *http.Request)
- func GetMessageText(w http.ResponseWriter, r *http.Request)
- func HealthzHandler(w http.ResponseWriter, _ *http.Request)
- func ProxyHandler(w http.ResponseWriter, r *http.Request)
- func ReadyzHandler(isReady *atomic.Value) http.HandlerFunc
- func RedirectToLatestMessage(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMessageHTML ¶ added in v1.9.3
func GetMessageHTML(w http.ResponseWriter, r *http.Request)
GetMessageHTML (method: GET) returns a rendered version of a message's HTML part
func GetMessageText ¶ added in v1.9.3
func GetMessageText(w http.ResponseWriter, r *http.Request)
GetMessageText (method: GET) returns a message's text part
func HealthzHandler ¶
func HealthzHandler(w http.ResponseWriter, _ *http.Request)
HealthzHandler is a liveness probe
func ProxyHandler ¶ added in v1.8.3
func ProxyHandler(w http.ResponseWriter, r *http.Request)
ProxyHandler is used to proxy assets for printing
func ReadyzHandler ¶
func ReadyzHandler(isReady *atomic.Value) http.HandlerFunc
ReadyzHandler is a ready probe that signals k8s to be able to retrieve traffic
func RedirectToLatestMessage ¶ added in v1.10.0
func RedirectToLatestMessage(w http.ResponseWriter, r *http.Request)
RedirectToLatestMessage (method: GET) redirects the web UI to the latest message
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.