mutagen

package
v0.11.0-alpha4 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2019 License: MIT Imports: 8 Imported by: 5

Documentation

Overview

Package mutagen provides common version and legal metadata for Mutagen.

Index

Constants

View Source
const (
	// VersionMajor represents the current major version of Mutagen.
	VersionMajor = 0
	// VersionMinor represents the current minor version of Mutagen.
	VersionMinor = 11
	// VersionPatch represents the current patch version of Mutagen.
	VersionPatch = 0
	// VersionTag represents a tag to be appended to the Mutagen version string.
	// It must not contain spaces. If empty, no tag is appended to the version
	// string.
	VersionTag = "alpha3"
)
View Source
const (
	// BuildDirectoryName is the name of the build directory to create inside
	// the root of the Mutagen source tree.
	BuildDirectoryName = "build"
)
View Source
const LegalNotice = `` /* 46162-byte string literal not displayed */

LegalNotice provides license notices for Mutagen itself and any third-party dependencies.

Variables

View Source
var DebugEnabled bool

DebugEnabled controls whether or not debugging is enabled for Mutagen. It is set automatically based on the MUTAGEN_DEBUG environment variable.

View Source
var DevelopmentModeEnabled bool

DevelopmentModeEnabled controls whether or not development mode is enabled for Mutagen. It is set automatically based on the MUTAGEN_DEVELOPMENT environment variable.

View Source
var Version string

Version provides a stringified version of the current Mutagen version.

Functions

func ClientVersionHandshake added in v0.10.0

func ClientVersionHandshake(connection net.Conn) error

ClientVersionHandshake performs the client side of a version handshake, returning an error if the received server version is not compatible with the client version.

TODO: Add some ability to support version skew in this function.

func ServerVersionHandshake added in v0.10.0

func ServerVersionHandshake(connection net.Conn) error

ServerVersionHandshake performs the server side of a version handshake, returning an error if the received client version is not compatible with the server version.

TODO: Add some ability to support version skew in this function.

func SourceTreePath added in v0.10.0

func SourceTreePath() (string, error)

SourceTreePath computes the path to the Mutagen source directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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