version

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2020 License: Apache-2.0 Imports: 11 Imported by: 1 module, 7 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package version represents the version the project Dragonfly.

Index

Constants

This section is empty.

Variables

View Source
var (

	// DFDaemonVersion is the version of dfdaemon.
	DFDaemonVersion = version

	// DFGetVersion is the version of dfget.
	DFGetVersion = version

	// SupernodeVersion is the version of supernode.
	SupernodeVersion = version

	// DFVersion is the global instance of DragonflyVersion.
	DFVersion *types.DragonflyVersion
)

Functions

func Handler added in v0.4.2

func Handler(w http.ResponseWriter, r *http.Request)

Handler returns build information.

func HandlerWithCtx added in v0.4.2

func HandlerWithCtx(context context.Context, w http.ResponseWriter, r *http.Request) (err error)

HandlerWithCtx returns build information.

func NewBuildInfo added in v0.4.3

func NewBuildInfo(program string, registerer prometheus.Registerer)

NewBuildInfo registers a collector which exports metrics about version and build information.

func Print added in v0.4.2

func Print(program string) string

Print returns version information.

Types

This section is empty.

Jump to

Keyboard shortcuts

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