Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Constants for http ContentType headers ContentType = "Content-Type" // ContentType header key ContentTypeJSON = "application/json; charset=utf-8" // ContentTypeJSON content type for json requests )
Variables ¶
This section is empty.
Functions ¶
func NewLivenessHandler ¶
func NewLivenessHandler() http.HandlerFunc
NewLivenessHandler a handler for kubernetes liveness probe
func NewReadinessHandler ¶
func NewReadinessHandler() http.HandlerFunc
NewReadinessHandler a handler for kubernetes readness probe
func NewSlowHandler ¶
func NewSlowHandler(delay time.Duration) http.HandlerFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.