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: 7

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