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.7.0" // Commit hash provided during build Commit = "Unknown" // BuildTime provided during build BuildTime = "Unknown" // GO provides golang version GO = runtime.Version() // Distro provides extra information regarding the os distribution Distro = "Unknown" // Compiler info Compiler = runtime.Compiler // OS Info OS = runtime.GOOS // Arch info Arch = runtime.GOARCH )
Functions ¶
Types ¶
type Model ¶
type Model struct {
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"`
Release string `xml:"release,omitempty" json:"release,omitempty"`
Distro string `xml:"distro,omitempty" json:"distro,omitempty"`
Hostname string `xml:"hostname,omitempty" json:"hostname,omitempty"`
}
Model struct holds version information about the binary build
Click to show internal directories.
Click to hide internal directories.