Versions in this module Expand all Collapse all v0 v0.29.4 Apr 3, 2024 Changes in this version + var HTTPTimeout = 60 * time.Second + var UpdateInterval = 24 * time.Hour + func GitHub(repo string) aw.Option + func Gitea(repo string) aw.Option + func Metadata(url string) aw.Option + func SortSemVer(versions []SemVer) + type Download struct + Filename string + Prerelease bool + URL string + Version SemVer + func (dl Download) AlfredVersion() SemVer + type SemVer struct + Build string + Major uint64 + Minor uint64 + Patch uint64 + Prerelease string + func NewSemVer(s string) (SemVer, error) + func (v SemVer) Compare(v2 SemVer) int + func (v SemVer) Eq(v2 SemVer) bool + func (v SemVer) Gt(v2 SemVer) bool + func (v SemVer) Gte(v2 SemVer) bool + func (v SemVer) IsZero() bool + func (v SemVer) Lt(v2 SemVer) bool + func (v SemVer) Lte(v2 SemVer) bool + func (v SemVer) Ne(v2 SemVer) bool + func (v SemVer) String() string + type SemVers []SemVer + func (vs SemVers) Len() int + func (vs SemVers) Less(i, j int) bool + func (vs SemVers) Swap(i, j int) + type Source interface + Downloads func() ([]Download, error) + type Updater struct + AlfredVersion SemVer + CurrentVersion SemVer + LastCheck time.Time + Prereleases bool + Source Source + func NewUpdater(src Source, currentVersion, cacheDir string) (*Updater, error) + func (u *Updater) CheckDue() bool + func (u *Updater) CheckForUpdate() error + func (u *Updater) Install() error + func (u *Updater) UpdateAvailable() bool