Help us shape the future of Go! Take the 2026 Go Developer Survey

version

package
v2.15.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: BSD-3-Clause Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check struct {
	// CurrentVersion is the current version string.
	//
	// Required: true
	CurrentVersion string `json:"currentVersion"`

	// NewestVersion is the newest available version string.
	//
	// Required: false
	NewestVersion string `json:"newestVersion,omitempty"`

	// UpdateAvailable indicates if an update is available.
	//
	// Required: true
	UpdateAvailable bool `json:"updateAvailable"`

	// ReleaseURL is the URL to the release page.
	//
	// Required: false
	ReleaseURL string `json:"releaseUrl,omitempty"`
}

Check contains simplified version check information.

type Info

type Info struct {
	// CurrentVersion is the current version string.
	//
	// Required: true
	CurrentVersion string `json:"currentVersion"`

	// CurrentTag is the current tag.
	//
	// Required: false
	CurrentTag string `json:"currentTag,omitempty"`

	// CurrentDigest is the current digest (hash) of the version.
	//
	// Required: false
	CurrentDigest string `json:"currentDigest,omitempty"`

	// Revision is the full revision identifier (e.g., commit hash).
	//
	// Required: true
	Revision string `json:"revision"`

	// ShortRevision is the short revision identifier (first 8 chars of commit hash).
	//
	// Required: true
	ShortRevision string `json:"shortRevision"`

	// GoVersion is the Go runtime version used to build the application.
	//
	// Required: true
	GoVersion string `json:"goVersion"`

	// NodeVersion is the Node.js version used to build the frontend.
	//
	// Required: true
	NodeVersion string `json:"nodeVersion"`

	// SvelteKitVersion is the SvelteKit version used to build the frontend.
	//
	// Required: true
	SvelteKitVersion string `json:"svelteKitVersion"`

	// BuildTime is the timestamp when the application was built.
	//
	// Required: false
	BuildTime string `json:"buildTime,omitempty"`

	// DisplayVersion is the version string formatted for display.
	//
	// Required: true
	DisplayVersion string `json:"displayVersion"`

	// NewestVersion is the newest available version string.
	//
	// Required: false
	NewestVersion string `json:"newestVersion,omitempty"`

	// NewestDigest is the digest (hash) of the newest available version.
	//
	// Required: false
	NewestDigest string `json:"newestDigest,omitempty"`

	// ReleaseURL is the URL to the release page.
	//
	// Required: false
	ReleaseURL string `json:"releaseUrl,omitempty"`

	// ReleaseNotes is the markdown body of the latest GitHub release.
	//
	// Required: false
	ReleaseNotes string `json:"releaseNotes,omitempty"`

	// ReleasedAt is the ISO-8601 timestamp the latest release was published.
	//
	// Required: false
	ReleasedAt string `json:"releasedAt,omitempty"`

	// EnabledFeatures is the list of build-time feature flags compiled into the binary.
	//
	// Required: false
	EnabledFeatures []string `json:"enabledFeatures,omitempty"`

	// IsSemverVersion indicates if the current version follows semantic versioning.
	//
	// Required: true
	IsSemverVersion bool `json:"isSemverVersion"`

	// UpdateAvailable indicates if an update is available.
	//
	// Required: true
	UpdateAvailable bool `json:"updateAvailable"`
}

Info contains detailed version information about the application.

func (*Info) AlreadyOnNewest added in v2.15.0

func (i *Info) AlreadyOnNewest() bool

AlreadyOnNewest reports whether the check is confident the environment already runs the newest image. Anything unresolved or contradictory reports false.

type StreamEvent added in v2.13.0

type StreamEvent struct {
	// Type is the event kind: "snapshot".
	//
	// Required: true
	Type string `json:"type"`

	// Info is the app version information for a "snapshot".
	//
	// Required: false
	Info *Info `json:"info,omitempty"`

	// Timestamp is when the event was produced.
	//
	// Required: true
	Timestamp time.Time `json:"timestamp"`
}

StreamEvent is one version-channel line on the multiplexed client stream.

Jump to

Keyboard shortcuts

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