Versions in this module Expand all Collapse all v0 v0.0.1 Feb 9, 2021 Changes in this version + var ErrHashMismatch = errors.New("new file hash mismatch after patch") + type HTTPRequester struct + func (httpRequester *HTTPRequester) Fetch(url string) (io.ReadCloser, error) + type Requester interface + Fetch func(url string) (io.ReadCloser, error) + type Updater struct + ApiURL string + BinURL string + CheckTime int + CmdName string + CurrentVersion string + DiffURL string + Dir string + ForceCheck bool + Info struct{ ... } + RandomizeTime int + Requester Requester + func (u *Updater) BackgroundRun() error + func (u *Updater) ClearUpdateState() + func (u *Updater) NextUpdate() time.Time + func (u *Updater) SetUpdateTime() bool + func (u *Updater) Update() error + func (u *Updater) UpdateAvailable() (string, error) + func (u *Updater) WantUpdate() bool