version

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   string
	Revision  string
	Branch    string
	BuildUser string
	BuildDate string
	GoVersion = runtime.Version()
)

Build information. Populated at build-time.

View Source
var ServiceName = "undefined"

ServiceName should define in build time

Functions

func BuildContext

func BuildContext() string

BuildContext returns goVersion, buildUser and buildDate information.

func Info

func Info() string

Info returns version, branch and revision information.

func InitialFields

func InitialFields() map[string]interface{}

InitialFields for zap InitialFields

func MustRegisterVersionCollector

func MustRegisterVersionCollector()

func NewCollector

func NewCollector(program string) prometheus.Collector

NewCollector returns a collector that exports metrics about current version information.

func Print

func Print(program string) string

Print returns version information.

func PromSubsystem

func PromSubsystem() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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