Versions in this module Expand all Collapse all v1 v1.0.0 Oct 10, 2023 Changes in this version + const ArchitectureKeyName + const BetaKeyName + const ClientVersionName + const DefaultCheckUpdateFreq + const LogFieldVersion + const OSKeyName + const StagingUpdateURL + const UpdateURL + const VersionKeyName + var BuiltForPackageManager = "" + func Init(v string) + func IsSysV() bool + func Update(c *cli.Context) error + type AutoUpdater struct + func NewAutoUpdater(updateDisabled bool, freq time.Duration, listeners *gracenet.Net, ...) *AutoUpdater + func (a *AutoUpdater) Run(ctx context.Context) error + func (a *AutoUpdater) Update(updateDisabled bool, newFreq time.Duration) + type CheckResult interface + Apply func() error + UserMessage func() string + Version func() string + func CheckForUpdate(options updateOptions) (CheckResult, error) + func NewWorkersVersion(url, version, checksum, targetPath, userMessage string, isCompressed bool) CheckResult + type Options struct + IsBeta bool + IsForced bool + RequestedVersion string + type Service interface + Check func() (CheckResult, error) + func NewWorkersService(currentVersion, url, targetPath string, opts Options) Service + type UpdateOutcome struct + Error error + Updated bool + UserMessage string + Version string + type VersionResponse struct + Checksum string + Error string + IsCompressed bool + ShouldUpdate bool + URL string + UserMessage string + Version string + type VersionWarningChecker struct + func StartWarningCheck(c *cli.Context) VersionWarningChecker + func (checker VersionWarningChecker) LogWarningIfAny(log *zerolog.Logger) + type WorkersService struct + func (s *WorkersService) Check() (CheckResult, error) + type WorkersVersion struct + func (v *WorkersVersion) Apply() error + func (v *WorkersVersion) UserMessage() string + func (v *WorkersVersion) Version() string