Versions in this module Expand all Collapse all v0 v0.5.0 Nov 24, 2026 v0.4.0 Nov 19, 2026 Changes in this version + const DefaultSchedule + func IsNewer(latest, current string) bool + func IsStable(version string) bool + func Version() string + type Config struct + ArchiveName func(version string) string + Binary string + Client *http.Client + CurrentVersion string + Log *slog.Logger + Repository string + TaskName string + type Schedule struct + func ParseSchedule(expr string) (Schedule, error) + func (s Schedule) Next(now time.Time) time.Time + type Updater struct + func New(cfg Config) (*Updater, error) + func (u *Updater) Latest(ctx context.Context) (string, error) + func (u *Updater) Restart() error + func (u *Updater) Run(ctx context.Context, sched Schedule) (string, error) + func (u *Updater) Update(ctx context.Context) (version string, err error)