updater

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: May 23, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Updater

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

Updater 自动更新器

func New

func New(cfg *config.Config, currentVer string) (*Updater, error)

New 创建更新器

func (*Updater) CheckAndUpdate

func (u *Updater) CheckAndUpdate()

CheckAndUpdate 检查并更新

func (*Updater) Start

func (u *Updater) Start(ctx context.Context)

Start 启动自动更新检查

type VersionInfo

type VersionInfo struct {
	Version string `json:"version"`
}

VersionInfo 版本信息

Jump to

Keyboard shortcuts

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