Documentation
¶
Overview ¶
Package dailycheck is the daily beat the update checks run on — the app plugins' (wasmplugin/updates.go) and the storage plugins' (plugin/updates.go): a check a day after the last one, never sooner than a short wait after start, with the time of the last run kept in the settings table so a restart neither skips a day nor checks at every boot.
⚠ One beat, not two: both checks had their own copy of this loop until the duplication gate caught the second (web/tests/quality/duplication.test.ts).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Beat ¶
type Beat struct {
Store Settings
// Key is the settings key holding the last run (RFC 3339).
Key string
// First is the least wait after start; Interval the time between runs.
First, Interval time.Duration
// Now is the clock (time.Now when nil).
Now func() time.Time
}
Beat is one daily check's schedule.
Click to show internal directories.
Click to hide internal directories.