Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CLIENT_VER_FILE string = "./data/client_ver"
Functions ¶
Types ¶
type ClientDownloader ¶ added in v1.0.3
type ClientDownloader struct {
// contains filtered or unexported fields
}
func NewClientDownloader ¶ added in v1.0.3
func NewClientDownloader(versionChecker *VersionChecker) (*ClientDownloader, error)
func (*ClientDownloader) CreateFolderIfNeeded ¶ added in v1.0.3
func (cl *ClientDownloader) CreateFolderIfNeeded(path string) error
func (*ClientDownloader) DownloadLatestVersion ¶ added in v1.0.3
func (cl *ClientDownloader) DownloadLatestVersion() error
func (*ClientDownloader) InitialClientDownload ¶ added in v1.0.3
func (cl *ClientDownloader) InitialClientDownload() error
func (*ClientDownloader) String ¶ added in v1.0.3
func (cl *ClientDownloader) String() string
type Notifier ¶
type Notifier struct { C chan util.Notification // contains filtered or unexported fields }
func NewNotifier ¶
func NewNotifier() *Notifier
type ReleaseStruct ¶ added in v1.0.3
type VersionChecker ¶
type VersionChecker struct { ServerStatus *VersionCheckerStatus ClientStatus *VersionCheckerStatus // contains filtered or unexported fields }
func NewVersionCheck ¶
func NewVersionCheck(current string, notifier chan<- util.Notification) (*VersionChecker, error)
func (*VersionChecker) GetLocalClientVersion ¶ added in v1.0.3
func (v *VersionChecker) GetLocalClientVersion() (string, error)
func (*VersionChecker) GetWSInfo ¶ added in v1.0.3
func (v *VersionChecker) GetWSInfo() gin.H
func (*VersionChecker) SetLocalClientVersion ¶ added in v1.0.3
func (v *VersionChecker) SetLocalClientVersion(newVersion string) error
func (*VersionChecker) String ¶
func (v *VersionChecker) String() string
type VersionCheckerStatus ¶ added in v1.0.3
type VersionCheckerStatus struct { CurrentVersion *semver.Version `json:"currentVersion"` IsUpdateAvailable bool `json:"isUpdateAvailable"` HasCheckFailed bool `json:"hasCheckFailed"` LatestVersion string `json:"latestVersion"` LatestUrl string `json:"latestUrl"` ManualUrl string `json:"manualUrl"` }
Click to show internal directories.
Click to hide internal directories.