bricks

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: MIT Imports: 3 Imported by: 1

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

type JSONDuration time.Duration

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL