updatecheck

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker struct {
	// contains filtered or unexported fields
}

Checker resolves latest releases and compares them against the current build.

func New

func New(kvStore kv.KV, client *http.Client) *Checker

New creates a new update checker bound to a KV store.

func (*Checker) Check

func (c *Checker) Check(ctx context.Context, currentVersion string) (*Result, error)

Check compares currentVersion to the latest release and returns a non-nil Result only when an update is available.

type ReleaseInfo

type ReleaseInfo struct {
	TagName     string `json:"tag_name"`
	PublishedAt string `json:"published_at"`
}

ReleaseInfo holds cached release data returned by GitHub.

type Result

type Result struct {
	Current string
	Latest  string
}

Result is returned when a newer version is available.

Jump to

Keyboard shortcuts

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