Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NoSelfUpdate = "false"
NoSelfUpdate is set to "true" for builds distributed to package managers to prevent auto-updating. It is typed as a string because the linker allows only setting string variables at compile time (see https://pkg.go.dev/cmd/link). Set at compile time using ldflags (see the prod-noupdate task in the /tasks/build directory).
Functions ¶
This section is empty.
Types ¶
type SelfUpdater ¶
type SelfUpdater struct {
// contains filtered or unexported fields
}
func NewSelfUpdater ¶
func NewSelfUpdater(httpClient httpClient, config *cfg.Config, eventsEmitter selfupdateEventsEmitter, restartApp func() error) (*SelfUpdater, error)
func (*SelfUpdater) StartPeriodicChecks ¶ added in v0.13.0
func (su *SelfUpdater) StartPeriodicChecks( ctx context.Context, interval time.Duration, )
Click to show internal directories.
Click to hide internal directories.