Documentation
¶
Overview ¶
Package releasecheck asks GitHub, about once a day, for the latest MemSpace release, so the web UI can tell the administrator about a newer server. It only reports; nothing is downloaded or installed.
Index ¶
Constants ¶
const ( Interval = 24 * time.Hour RetryAfter = time.Hour )
Interval between checks, and between retries after a failed one.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker struct {
// URL redirects to the latest release's page (.../releases/tag/<tag>).
// The web URL is used rather than the API, which limits requests
// without a token per IP address (shared behind proxies and NAT).
URL string
HTTP *http.Client
Logf func(format string, a ...any)
// contains filtered or unexported fields
}
Checker holds the latest release seen.