updatecheck

package
v2025.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoVersionInfo = errors.New("no version info available")
View Source
var Module = fx.Module("updatecheck",
	fx.Provide(New),
)

Functions

This section is empty.

Types

type Checker

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

Checker periodically checks for updates to the application by querying the GitHub Releases API.

func New

func New(p Params) *Checker

func (*Checker) GetNewVersionInfo

func (c *Checker) GetNewVersionInfo() (string, string, string, time.Time)

func (*Checker) Start

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

Start launches the update loop and blocks until ctx is done.

type Params added in v2025.11.0

type Params struct {
	fx.In

	LC fx.Lifecycle

	Config *config.Config
	Logger *zap.Logger
}

Jump to

Keyboard shortcuts

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