update

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UpdateInfo

type UpdateInfo struct {
	HasUpdate  bool   `json:"hasUpdate"`
	Current    string `json:"current"`
	Latest     string `json:"latest"`
	ReleaseURL string `json:"releaseUrl"`
}

UpdateInfo is the result returned to the frontend.

func Check

func Check(currentVersion, source string) (*UpdateInfo, error)

Check compares the current version against the latest release from the given source.

Jump to

Keyboard shortcuts

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