Versions in this module Expand all Collapse all v1 v1.0.1 Mar 5, 2024 v1.0.0 Mar 5, 2024 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 + Dir string + ForceCheck bool + Info struct{ ... } + OnSuccessfulUpdate func() + RandomizeTime int + Requester Requester + func (u *Updater) ClearUpdateState() + func (u *Updater) NextUpdate() time.Time + func (u *Updater) Run() error + func (u *Updater) SetUpdateTime() bool + func (u *Updater) Update() error + func (u *Updater) UpdateAvailable() (string, error) + func (u *Updater) WantUpdate() bool