health

package
v0.0.0-...-4687c92 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LivenessHandler

func LivenessHandler(w http.ResponseWriter, r *http.Request)

всегда отдает 200 Ok, если сервер умрет, то тут будет 502

func ReadinessHandler

func ReadinessHandler(w http.ResponseWriter, r *http.Request)

Если сервер временно недоступен, то отдаст код 200

func SetServerStatus

func SetServerStatus(busy bool, message string)

Types

type Response

type Response struct {
	Status  string `json:"status"`
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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