health

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuildTime = "MISSING BUILD TIME"
View Source
var GitCommit = "MISSING GIT COMMIT"

Functions

func HealthzHandler

func HealthzHandler() http.HandlerFunc

func ReadyzHandler

func ReadyzHandler() http.HandlerFunc

ReadyzHandler checks if the application is ready and the backend server is up.

func VersionHandler

func VersionHandler() http.HandlerFunc

VersionHandler returns version information as JSON.

Types

type VersionInfo

type VersionInfo struct {
	Version   string `json:"version"`
	GitCommit string `json:"gitCommit"`
	BuildTime string `json:"buildTime"`
}

VersionInfo represents the structure of version information.

Jump to

Keyboard shortcuts

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