update

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2026 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GithubLatestURL = "https://api.github.com/repos/rvben/vedetta/releases/latest"

Functions

This section is empty.

Types

type Checker

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

func New

func New(current string, interval time.Duration, db settingsStore) *Checker

func (*Checker) CheckNow

func (c *Checker) CheckNow() Status

func (*Checker) Dismiss

func (c *Checker) Dismiss() error

func (*Checker) Start

func (c *Checker) Start(ctx context.Context)

func (*Checker) Status

func (c *Checker) Status() Status

func (*Checker) Stop

func (c *Checker) Stop()

type Release

type Release struct {
	Version   string    `json:"version"`
	URL       string    `json:"url"`
	CheckedAt time.Time `json:"checked_at"`
}

type Status

type Status struct {
	Current         string `json:"current"`
	Latest          string `json:"latest,omitempty"`
	URL             string `json:"url,omitempty"`
	UpdateAvailable bool   `json:"update_available"`
	Dismissed       bool   `json:"dismissed"`
	CheckedAt       string `json:"checked_at,omitempty"`
}

Jump to

Keyboard shortcuts

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