health

package
v0.0.0-...-ca83fcd Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLiveness

func GetLiveness(response http.ResponseWriter, req *http.Request)

GetLiveness liveness probe

func GetReadiness

func GetReadiness(response http.ResponseWriter, req *http.Request)

GetReadiness is this service ready for taking requests, e.g. formaly known as health checks

func HeadLiveness

func HeadLiveness(response http.ResponseWriter, req *http.Request)

HeadLiveness liveness probe

func HeadReadiness

func HeadReadiness(response http.ResponseWriter, req *http.Request)

HeadReadiness is this service ready for taking requests, e.g. formaly known as health checks

func InitHealthSystem

func InitHealthSystem(config CheckConfig, tracer opentracing.Tracer)

InitHealthSystem initialise the complete health system

func Routes

func Routes() *chi.Mux

Types

type CheckConfig

type CheckConfig struct {
	Period int
}

CheckConfig configuration for the healthcheck system

type Msg

type Msg struct {
	Message   string `json:"message"`
	LastCheck string `json:"lastCheck,omitempty"`
}

Msg a health message

Jump to

Keyboard shortcuts

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