version

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const MongoDBVersion = "5.0.42"

MongoDBVersion is a fake MongoDB version for clients that check major.minor to adjust their behavior.

Variables

View Source
var MongoDBVersionArray = must.NotFail(types.NewArray(int32(5), int32(0), int32(42), int32(0)))

MongoDBVersionArray is MongoDBVersion, but as an array.

Functions

This section is empty.

Types

type Info

type Info struct {
	Version          string
	Commit           string
	Branch           string
	Dirty            bool
	Debug            bool // testcover or -race
	BuildEnvironment *types.Document
}

func Get

func Get() *Info

Get returns current build's info.

Jump to

Keyboard shortcuts

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