version

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// BuildTime is a time label of the moment when the binary was built
	BuildTime = "unset"
	// Commit is a last commit hash at the moment when the binary was built
	Commit = "unset"
	// Name is a description of the service
	Name = "unset"
	// Release is a semantic version of current build
	Release = "unset"
)

Functions

This section is empty.

Types

type Info

type Info struct {
	BuildTime string `json:"build_time"`
	Commit    string `json:"commit"`
	Name      string `json:"name"`
	Release   string `json:"release"`
}

Info is the stuctured version data to be returned by the version handler.

Jump to

Keyboard shortcuts

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