updater

package
v1.19.34-clash.3 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: GPL-3.0 Imports: 30 Imported by: ? 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

View Source
const (
	ReleaseChannel = "release"
	AlphaChannel   = "alpha"
)
View Source
const (

	// MaxPackageFileSize is a maximum package file length in bytes. The largest
	// package whose size is limited by this constant currently has the size of
	// approximately 32 MiB.
	MaxPackageFileSize = 32 * 1024 * 1024
)

Variables

View Source
var DefaultCoreUpdater = CoreUpdater{}
View Source
var DefaultUiUpdater = &UIUpdater{}
View Source
var ErrGetDatabaseUpdateSkip = errors.New("GEO database is updating, skip")

Functions

func GeoAutoUpdate

func GeoAutoUpdate() bool

func GeoUpdateInterval

func GeoUpdateInterval() int

func RegisterGeoUpdater

func RegisterGeoUpdater()

func SetGeoAutoUpdate

func SetGeoAutoUpdate(newAutoUpdate bool)

func SetGeoUpdateInterval

func SetGeoUpdateInterval(newGeoUpdateInterval int)

func UpdateASN

func UpdateASN() (err error)

func UpdateGeoDatabases

func UpdateGeoDatabases() error

func UpdateGeoIp

func UpdateGeoIp() (err error)

func UpdateGeoSite

func UpdateGeoSite() (err error)

func UpdateMMDB

func UpdateMMDB() (err error)

Types

type CoreUpdater

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

CoreUpdater is the mihomo updater. modify from https://github.com/AdguardTeam/AdGuardHome/blob/595484e0b3fb4c457f9bb727a6b94faa78a66c5f/internal/updater/updater.go

func (*CoreUpdater) CoreBaseName

func (u *CoreUpdater) CoreBaseName() string

func (*CoreUpdater) Update

func (u *CoreUpdater) Update(currentExePath string, channel string, force bool) (err error)

type UIUpdater

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

func NewUiUpdater

func NewUiUpdater(externalUI, externalUIURL, externalUIName string) *UIUpdater

func (*UIUpdater) AutoDownloadUI

func (u *UIUpdater) AutoDownloadUI()

func (*UIUpdater) DownloadUI

func (u *UIUpdater) DownloadUI() error

Jump to

Keyboard shortcuts

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