Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Asset ¶
type Asset struct {
Name string `json:"name"`
BrowserDownloadURL string `json:"browser_download_url"`
Size int64 `json:"size"`
}
Asset represents a release asset
type CheckResult ¶
type CheckResult struct {
CurrentVersion string
LatestVersion string
UpdateAvailable bool
ReleaseURL string
PublishedAt string
}
CheckResult contains the result of a version check
type ReleaseInfo ¶
type ReleaseInfo struct {
TagName string `json:"tag_name"`
Name string `json:"name"`
Draft bool `json:"draft"`
Prerelease bool `json:"prerelease"`
PublishedAt string `json:"published_at"`
Assets []Asset `json:"assets"`
}
ReleaseInfo contains GitHub release metadata
type Updater ¶
type Updater struct {
// contains filtered or unexported fields
}
Updater handles version checking and binary updates
func NewUpdater ¶
NewUpdater creates a new updater instance
func (*Updater) CheckForUpdate ¶
func (u *Updater) CheckForUpdate(ctx context.Context) (*CheckResult, error)
CheckForUpdate fetches latest release info and compares versions
Click to show internal directories.
Click to hide internal directories.