version

package
v0.4.60 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package version contains the version of the weaver module and its constituent APIs (e.g., the pipe API, the codegen API).

Index

Constants

View Source
const (
	// The version of the deployer API.
	//
	// Every time we make a change to the deployer API, we assign it a new
	// version. We could assign the deployer API versions v1, v2, v3, and so
	// on. However, this makes it hard to understand the relationship between
	// the deployer API version and the version of the Service Weaver module.
	//
	// Instead, we use Service Weaver module versions as deployer API versions.
	// For example, if we change the deployer API in v0.12.0 of Service Weaver,
	// then we update the deployer API version to v0.12.0. If we don't change
	// the deployer API in v0.13.0 of Service Weaver, then we leave the
	// deployer API at v0.12.0.
	DeployerMajor = 0
	DeployerMinor = 22

	// The version of the codegen API. As with the deployer API, we assign a
	// new version every time we change how code is generated, and we use
	// weaver module versions.
	CodegenMajor = 0
	CodegenMinor = 20
)

Variables

View Source
var (
	// The deployer API version.
	DeployerVersion = SemVer{DeployerMajor, DeployerMinor, 0}

	// The codegen API version.
	CodegenVersion = SemVer{CodegenMajor, CodegenMinor, 0}
)

Functions

This section is empty.

Types

type SemVer

type SemVer struct {
	Major int
	Minor int
	Patch int
}

SemVer is a semantic version. See https://go.dev/doc/modules/version-numbers for details.

func (SemVer) String

func (s SemVer) String() string

Jump to

Keyboard shortcuts

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