Versions in this module Expand all Collapse all v0 v0.4.0 Sep 6, 2026 v0.3.0 Aug 18, 2026 Changes in this version + const DefaultTimeout + const Endpoint + const Interval + var ErrNoRelease = errors.New("update: the repository has published no release") + func UserAgent(version string) string + type Announcer interface + AnnounceRelease func(ctx context.Context, running, available string) error + type Client struct + func NewClient(version, endpoint string, rt http.RoundTripper) *Client + func (c *Client) Latest(ctx context.Context) (Release, error) + type Config struct + Announce Announcer + Endpoint string + Interval time.Duration + Log *slog.Logger + Version string + type Release struct + Draft bool + Prerelease bool + TagName string + type Service struct + func NewService(pool *pgxpool.Pool, cfg Config) *Service + func (s *Service) Run(ctx context.Context) error + type Version struct + Major int + Minor int + Patch int + func IsNewer(local, remote string) (Version, bool) + func ParseVersion(s string) (Version, bool) + func (v Version) Compare(w Version) int + func (v Version) String() string