handlers

package
v0.0.0-...-c4a3ebf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2020 License: MIT Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL