Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Information ¶
type Information struct { GitCommit string `json:"git_commit,omitempty"` Version string `json:"version,omitempty"` BuildTag string `json:"build_tag,omitempty"` BuildTime time.Time `json:"build_time,omitempty"` InitTime time.Time `json:"init_time,omitempty"` UpTime JSONDuration `json:"up_time,omitempty"` Hostname string `json:"hostname,omitempty"` }
Information is a struct that will hold all the statically injected information during build
func GetBuildInformation ¶
func GetBuildInformation(includeExplanations ...bool) (info Information)
GetBuildInformation returns this service build information
type JSONDuration ¶
JSONDuration is an alias to time.Duration for Json marshaling
func (JSONDuration) MarshalJSON ¶
func (jd JSONDuration) MarshalJSON() ([]byte, error)
MarshalJSON for JsonDuration is a helper function to better marshal time.Duration
Click to show internal directories.
Click to hide internal directories.