Documentation
¶
Index ¶
- Constants
- Variables
- func GeoAutoUpdate() bool
- func GeoUpdateInterval() int
- func RegisterGeoUpdater()
- func SetGeoAutoUpdate(newAutoUpdate bool)
- func SetGeoUpdateInterval(newGeoUpdateInterval int)
- func UpdateASN() (err error)
- func UpdateGeoDatabases() error
- func UpdateGeoIp() (err error)
- func UpdateGeoSite() (err error)
- func UpdateMMDB() (err error)
- type CoreUpdater
- type UIUpdater
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 ¶ added in v1.18.9
func GeoAutoUpdate() bool
func GeoUpdateInterval ¶ added in v1.18.9
func GeoUpdateInterval() int
func RegisterGeoUpdater ¶
func RegisterGeoUpdater()
func SetGeoAutoUpdate ¶ added in v1.18.9
func SetGeoAutoUpdate(newAutoUpdate bool)
func SetGeoUpdateInterval ¶ added in v1.18.9
func SetGeoUpdateInterval(newGeoUpdateInterval int)
func UpdateGeoDatabases ¶
func UpdateGeoDatabases() error
func UpdateGeoIp ¶ added in v1.18.9
func UpdateGeoIp() (err error)
func UpdateGeoSite ¶ added in v1.18.9
func UpdateGeoSite() (err error)
func UpdateMMDB ¶ added in v1.18.9
func UpdateMMDB() (err error)
Types ¶
type CoreUpdater ¶ added in v1.19.12
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 ¶ added in v1.19.12
func (u *CoreUpdater) CoreBaseName() string
type UIUpdater ¶ added in v1.18.10
type UIUpdater struct {
// contains filtered or unexported fields
}
func NewUiUpdater ¶ added in v1.18.10
func (*UIUpdater) AutoDownloadUI ¶ added in v1.18.10
func (u *UIUpdater) AutoDownloadUI()
func (*UIUpdater) DownloadUI ¶ added in v1.18.10
Click to show internal directories.
Click to hide internal directories.