Versions in this module Expand all Collapse all v0 v0.1.83 Aug 27, 2026 Changes in this version + const CookieMaxAge + const CookieName + const DefaultURL + func DueToday(value string, now time.Time) bool + func InstallID() string + func IsNewer(current, latest string) bool + func LeaksQueryInCleartext(raw string) bool + func NewVisit(id string, now time.Time) string + func SafeURL(raw string) string + func SplitVisit(value string) (date, id string) + type Beacon struct + AcceptLanguage string + ClientHints map[string]string + UserAgent string + Visit string + func BeaconFromRequest(r *http.Request, visit string) Beacon + type Checker struct + func New(cfg Config) *Checker + func (c *Checker) Enabled() bool + func (c *Checker) Refresh(ctx context.Context, beacon Beacon) (Status, error) + func (c *Checker) Run(ctx context.Context) + func (c *Checker) Status() Status + type Config struct + App string + Client *http.Client + Enabled bool + InstallID string + Interval time.Duration + MaxDailyChecks int + Now func() time.Time + Timeout time.Duration + URL string + Version string + type Status struct + App string + CheckedAt string + Enabled bool + Latest string + UpdateAvailable bool + Version string