version

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: Apache-2.0 Imports: 10 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 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)

NewBuildInfo register 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