site

package
v0.0.0-...-d996d1d Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package site contains variables and general purpose utilities related to the labpack command line tool.

For example, it includes the default user agent and default UFS RPC options.

Index

Constants

View Source
const VersionNumber = "1.0.0"

VersionNumber is the version number for the tool. It follows the Semantic Versioning Specification (http://semver.org) and the format is: "MAJOR.MINOR.0+BUILD_TIME". We can ignore the PATCH part (i.e. it's always 0) to make the maintenance work easier. We can also print out the build time (e.g. 20060102150405) as the METADATA when show version to users.

Variables

View Source
var DefaultPRPCOptions = prpcOptionWithUserAgent(fmt.Sprintf("labpack/%s", VersionNumber))

DefaultPRPCOptions is used for PRPC clients. If it is nil, the default value is used. See prpc.Options for details.

This is provided so it can be overridden for testing.

View Source
var UFSPRPCOptions = prpcOptionWithUserAgent("labpack/6.0.0")

UFSPRPCOptions is used for UFS PRPC clients. Version 6.0.0 used as the last known expected version by UFS.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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