Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LivenessHandler ¶
func LivenessHandler(service string) func(w http.ResponseWriter, r *http.Request)
LivenessHandler returns ok response for liveness probe
Types ¶
type Response ¶
type Response struct { HTTPStatusCode int `json:"-"` // http response status code StatusText string `json:"status,omitempty"` // user-level status message ErrorText string `json:"error,omitempty"` // application-level error message, for debugging }
Response defines HTTP response structure
func ErrResponse ¶
ErrResponse returns Response struct with provided HTTP status code and error text
Click to show internal directories.
Click to hide internal directories.