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.
Click to show internal directories.
Click to hide internal directories.