version

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 2

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

func ListVersion(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)

ListVersion displays version information about the service

func Options

func Options(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)

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

Jump to

Keyboard shortcuts

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