health

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuildTime = "MISSING BUILD TIME"

BuildTime holds the timestamp of when the build was created. It's set during the build process.

View Source
var GitCommit = "MISSING GIT COMMIT"

GitCommit holds the Git commit hash of the build. It's set during the build process.

Functions

func HealthzHandler

func HealthzHandler(username, password, host string, port int, database string) http.HandlerFunc

HealthzHandler returns an HTTP handler function that checks database connectivity.

func ReadyzHandler

func ReadyzHandler(username, password, host string, port int, database string) http.HandlerFunc

ReadyzHandler returns an HTTP handler function that checks database connectivity.

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