Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Release version of the service. Bump it up during new version release Release = "1.14.1" // Commit hash provided during build Commit = "Unknown" // BuildTime provided during build BuildTime = "Unknown" // GO provides golang version GO = runtime.Version() // Compiler info Compiler = runtime.Compiler // OS Info OS = runtime.GOOS // Arch info Arch = runtime.GOARCH )
Functions ¶
func HandleSubrouter ¶
func HandleSubrouter(s *mux.Router, confhandler *respond.ConfHandler)
HandleSubrouter for api access to version infomation
func ListVersion ¶
ListVersion displays version information about the service
Types ¶
type Version ¶
type Version struct {
Release string `xml:"release" json:"release"`
Commit string `xml:"commit" json:"commit"`
BuildTime string `xml:"build_time" json:"build_time"`
GO string `xml:"golang" json:"golang"`
Compiler string `xml:"compiler" json:"compiler"`
OS string `xml:"os" json:"os"`
Arch string `xml:"architecture" json:"architecture"`
}
Version struct holds version information about the binary build
Click to show internal directories.
Click to hide internal directories.